Skip to content

Commit

Permalink
Add rule description files for C# and VB.NET (#1561)
Browse files Browse the repository at this point in the history
  • Loading branch information
zsolt-kolbay-sonarsource committed Feb 9, 2023
1 parent 0c88ad0 commit c3a629a
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 2 deletions.
22 changes: 20 additions & 2 deletions 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[]

Expand All @@ -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[]
3 changes: 3 additions & 0 deletions rules/S2094/vbnet/metadata.json
@@ -0,0 +1,3 @@
{

}
34 changes: 34 additions & 0 deletions 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[]

0 comments on commit c3a629a

Please sign in to comment.