Skip to content

Commit

Permalink
Add vbnet and csharp samples (#1512)
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-strecker-sonarsource committed Feb 2, 2023
1 parent 851b654 commit 699c615
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 1 deletion.
13 changes: 12 additions & 1 deletion rules/S1133/csharp/rule.adoc
@@ -1,4 +1,15 @@
include::../rule.adoc[]
include::../description.adoc[]

== Noncompliant Code Example

[source,csharp]
----
[Obsolete] // Noncompliant
void Method()
{
// ..
}
----

ifdef::env-github,rspecator-view[]

Expand Down
3 changes: 3 additions & 0 deletions rules/S1133/vbnet/metadata.json
@@ -0,0 +1,3 @@
{

}
25 changes: 25 additions & 0 deletions rules/S1133/vbnet/rule.adoc
@@ -0,0 +1,25 @@
include::../description.adoc[]

== Noncompliant Code Example

[source,vbnet]
----
<Obsolete> ' Noncompliant
Sub Procedure()
End Sub
----

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 699c615

Please sign in to comment.