diff --git a/rules/S2094/csharp/rule.adoc b/rules/S2094/csharp/rule.adoc index d4f3cbe4fa7..c399198c020 100644 --- a/rules/S2094/csharp/rule.adoc +++ b/rules/S2094/csharp/rule.adoc @@ -1,4 +1,22 @@ -include::../rule.adoc[] +include::../description.adoc[] + +== Noncompliant Code Example + +[source,csharp] +---- +public class Empty // Noncompliant +{ +} +---- + +== Compliant Solution + +[source,csharp] +---- +public interface IEmpty +{ +} +---- ifdef::env-github,rspecator-view[] @@ -13,4 +31,4 @@ include::../message.adoc[] (visible only on this page) include::../comments-and-links.adoc[] -endif::env-github,rspecator-view[] +endif::env-github,rspecator-view[] \ No newline at end of file diff --git a/rules/S2094/vbnet/metadata.json b/rules/S2094/vbnet/metadata.json new file mode 100644 index 00000000000..17971333806 --- /dev/null +++ b/rules/S2094/vbnet/metadata.json @@ -0,0 +1,3 @@ +{ + +} diff --git a/rules/S2094/vbnet/rule.adoc b/rules/S2094/vbnet/rule.adoc new file mode 100644 index 00000000000..84c6a43bf22 --- /dev/null +++ b/rules/S2094/vbnet/rule.adoc @@ -0,0 +1,34 @@ +include::../description.adoc[] + +== Noncompliant Code Example + +[source,vbnet] +---- +Public Class Empty ' Noncompliant + +End Class +---- + +== Compliant Solution + +[source,vbnet] +---- +Public Interface IEmpty + +End Interface +---- + +ifdef::env-github,rspecator-view[] + +''' +== Implementation Specification +(visible only on this page) + +include::../message.adoc[] + +''' +== Comments And Links +(visible only on this page) + +include::../comments-and-links.adoc[] +endif::env-github,rspecator-view[] \ No newline at end of file