diff --git a/rules/S6673/metadata.json b/rules/S6673/metadata.json index ada7eebd140..e942d683f4f 100644 --- a/rules/S6673/metadata.json +++ b/rules/S6673/metadata.json @@ -7,6 +7,7 @@ "constantCost": "5min" }, "tags": [ + "logging" ], "extra": { }, diff --git a/rules/S6673/vbnet/example_1_compliant.adoc b/rules/S6673/vbnet/example_1_compliant.adoc deleted file mode 100644 index df76aa5482a..00000000000 --- a/rules/S6673/vbnet/example_1_compliant.adoc +++ /dev/null @@ -1,4 +0,0 @@ -[source,vbnet,diff-id=1,diff-type=compliant] ----- -logger.LogError("{First} placeholder and {Second} one.", first, second) ----- diff --git a/rules/S6673/vbnet/example_1_noncompliant.adoc b/rules/S6673/vbnet/example_1_noncompliant.adoc deleted file mode 100644 index cca853701e1..00000000000 --- a/rules/S6673/vbnet/example_1_noncompliant.adoc +++ /dev/null @@ -1,6 +0,0 @@ -[source,vbnet,diff-id=1,diff-type=noncompliant] ----- -' 'first' and 'second' are swapped -logger.LogError("{First} placeholder and {Second} one.", second, first) -' ^^^^^^ ^^^^^ ----- diff --git a/rules/S6673/vbnet/example_2_compliant.adoc b/rules/S6673/vbnet/example_2_compliant.adoc deleted file mode 100644 index ef6314d2bed..00000000000 --- a/rules/S6673/vbnet/example_2_compliant.adoc +++ /dev/null @@ -1,4 +0,0 @@ -[source,vbnet,diff-id=2,diff-type=compliant] ----- -logger.LogError("File {FileName} not found in folder {Path}", fileName, path) ----- diff --git a/rules/S6673/vbnet/example_2_noncompliant.adoc b/rules/S6673/vbnet/example_2_noncompliant.adoc deleted file mode 100644 index 43b90a3bf20..00000000000 --- a/rules/S6673/vbnet/example_2_noncompliant.adoc +++ /dev/null @@ -1,5 +0,0 @@ -[source,vbnet,diff-id=2,diff-type=noncompliant] ----- -logger.LogError("File {FileName} not found in folder {Path}", path, fileName) -' ^^^^ ^^^^^^^^ ----- diff --git a/rules/S6673/vbnet/example_3_compliant.adoc b/rules/S6673/vbnet/example_3_compliant.adoc deleted file mode 100644 index bc42c5be1dc..00000000000 --- a/rules/S6673/vbnet/example_3_compliant.adoc +++ /dev/null @@ -1,4 +0,0 @@ -[source,vbnet,diff-id=3,diff-type=compliant] ----- -logger.LogError("File {Name} not found in folder {DirectoryName}", file.Name, file.DirectoryName) ----- diff --git a/rules/S6673/vbnet/example_3_noncompliant.adoc b/rules/S6673/vbnet/example_3_noncompliant.adoc deleted file mode 100644 index 5458deecf51..00000000000 --- a/rules/S6673/vbnet/example_3_noncompliant.adoc +++ /dev/null @@ -1,6 +0,0 @@ -[source,vbnet,diff-id=3,diff-type=noncompliant] ----- -logger.LogError("File {Name} not found in folder {Folder}", file.DirectoryName, file.Name) -' ^^^^ ----- - diff --git a/rules/S6673/vbnet/example_4_compliant.adoc b/rules/S6673/vbnet/example_4_compliant.adoc deleted file mode 100644 index b1cfa228ffe..00000000000 --- a/rules/S6673/vbnet/example_4_compliant.adoc +++ /dev/null @@ -1,6 +0,0 @@ -[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) ----- diff --git a/rules/S6673/vbnet/example_4_noncompliant.adoc b/rules/S6673/vbnet/example_4_noncompliant.adoc deleted file mode 100644 index 4d2710a6a81..00000000000 --- a/rules/S6673/vbnet/example_4_noncompliant.adoc +++ /dev/null @@ -1,4 +0,0 @@ -[source,vbnet,diff-id=4,diff-type=noncompliant] ----- -logger.LogError("Sum is {Sum} and product is {Product}", x * y, x + y) ' Not detected ----- diff --git a/rules/S6673/vbnet/metadata.json b/rules/S6673/vbnet/metadata.json deleted file mode 100644 index 7a73a41bfdf..00000000000 --- a/rules/S6673/vbnet/metadata.json +++ /dev/null @@ -1,2 +0,0 @@ -{ -} \ No newline at end of file diff --git a/rules/S6673/vbnet/rule.adoc b/rules/S6673/vbnet/rule.adoc deleted file mode 100644 index 9bbb1f64a00..00000000000 --- a/rules/S6673/vbnet/rule.adoc +++ /dev/null @@ -1,9 +0,0 @@ -:language: vbnet - -include::../description.adoc[] - -include::../why-dotnet.adoc[] - -include::../how-dotnet.adoc[] - -include::../resources-dotnet.adoc[] \ No newline at end of file