Compare commits
5 Commits
master
...
Zsolt/RSPE
Author | SHA1 | Date | |
---|---|---|---|
![]() |
1c6e806863 | ||
![]() |
a9c501a9a8 | ||
![]() |
d428dbc8d3 | ||
![]() |
84e0491d05 | ||
![]() |
c961a602cd |
4
rules/S6673/vbnet/example_1_compliant.adoc
Normal file
4
rules/S6673/vbnet/example_1_compliant.adoc
Normal file
@ -0,0 +1,4 @@
|
||||
[source,vbnet,diff-id=1,diff-type=compliant]
|
||||
----
|
||||
logger.LogError("{First} placeholder and {Second} one.", first, second)
|
||||
----
|
6
rules/S6673/vbnet/example_1_noncompliant.adoc
Normal file
6
rules/S6673/vbnet/example_1_noncompliant.adoc
Normal file
@ -0,0 +1,6 @@
|
||||
[source,vbnet,diff-id=1,diff-type=noncompliant]
|
||||
----
|
||||
' 'first' and 'second' are swapped
|
||||
logger.LogError("{First} placeholder and {Second} one.", second, first)
|
||||
' ^^^^^^ ^^^^^
|
||||
----
|
4
rules/S6673/vbnet/example_2_compliant.adoc
Normal file
4
rules/S6673/vbnet/example_2_compliant.adoc
Normal file
@ -0,0 +1,4 @@
|
||||
[source,vbnet,diff-id=2,diff-type=compliant]
|
||||
----
|
||||
logger.LogError("File {FileName} not found in folder {Path}", fileName, path)
|
||||
----
|
5
rules/S6673/vbnet/example_2_noncompliant.adoc
Normal file
5
rules/S6673/vbnet/example_2_noncompliant.adoc
Normal file
@ -0,0 +1,5 @@
|
||||
[source,vbnet,diff-id=2,diff-type=noncompliant]
|
||||
----
|
||||
logger.LogError("File {FileName} not found in folder {Path}", path, fileName)
|
||||
' ^^^^ ^^^^^^^^
|
||||
----
|
4
rules/S6673/vbnet/example_3_compliant.adoc
Normal file
4
rules/S6673/vbnet/example_3_compliant.adoc
Normal file
@ -0,0 +1,4 @@
|
||||
[source,vbnet,diff-id=3,diff-type=compliant]
|
||||
----
|
||||
logger.LogError("File {Name} not found in folder {DirectoryName}", file.Name, file.DirectoryName)
|
||||
----
|
6
rules/S6673/vbnet/example_3_noncompliant.adoc
Normal file
6
rules/S6673/vbnet/example_3_noncompliant.adoc
Normal file
@ -0,0 +1,6 @@
|
||||
[source,vbnet,diff-id=3,diff-type=noncompliant]
|
||||
----
|
||||
logger.LogError("File {Name} not found in folder {Folder}", file.DirectoryName, file.Name)
|
||||
' ^^^^
|
||||
----
|
||||
|
6
rules/S6673/vbnet/example_4_compliant.adoc
Normal file
6
rules/S6673/vbnet/example_4_compliant.adoc
Normal file
@ -0,0 +1,6 @@
|
||||
[source,vbnet,diff-id=4,diff-type=compliant]
|
||||
----
|
||||
Dim sum = x + y
|
||||
Dim product = x * y
|
||||
logger.LogError("Sum is {Sum} and product is {Product}", sum, product)
|
||||
----
|
4
rules/S6673/vbnet/example_4_noncompliant.adoc
Normal file
4
rules/S6673/vbnet/example_4_noncompliant.adoc
Normal file
@ -0,0 +1,4 @@
|
||||
[source,vbnet,diff-id=4,diff-type=noncompliant]
|
||||
----
|
||||
logger.LogError("Sum is {Sum} and product is {Product}", x * y, x + y) ' Not detected
|
||||
----
|
2
rules/S6673/vbnet/metadata.json
Normal file
2
rules/S6673/vbnet/metadata.json
Normal file
@ -0,0 +1,2 @@
|
||||
{
|
||||
}
|
9
rules/S6673/vbnet/rule.adoc
Normal file
9
rules/S6673/vbnet/rule.adoc
Normal file
@ -0,0 +1,9 @@
|
||||
:language: vbnet
|
||||
|
||||
include::../description.adoc[]
|
||||
|
||||
include::../why-dotnet.adoc[]
|
||||
|
||||
include::../how-dotnet.adoc[]
|
||||
|
||||
include::../resources-dotnet.adoc[]
|
Loading…
x
Reference in New Issue
Block a user