Compare commits

...

3 Commits

Author SHA1 Message Date
Cristian Ambrosini
31917356e4 Apply comments 2024-05-03 14:46:47 +02:00
Cristian Ambrosini
4bb015ef3f Draft rule specification 2024-05-03 14:46:47 +02:00
cristian-ambrosini-sonarsource
53e5d95e4f Create rule S6678 2024-05-03 14:46:38 +02:00
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,2 @@
{
}

View File

@ -0,0 +1,25 @@
include::../description-dotnet.adoc[]
include::../why-dotnet.adoc[]
include::../how-dotnet.adoc[]
=== Code examples
==== Noncompliant code example
[source,vbnet,diff-id=1,diff-type=noncompliant]
----
Logger.LogDebug("User {firstName} logged in", FirstName) ' Noncompliant
----
==== Compliant solution
[source,vbnet,diff-id=1,diff-type=compliant]
----
Logger.LogDebug("User {FirstName} logged in", FirstName) ' Compliant
----
include::../resources-dotnet.adoc[]
include::../rspecator.adoc[]