Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

S2094: Add C# and VB.NET #1561

Merged
merged 1 commit into from Feb 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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[]