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

Modify S1133: Add support for vbnet and adopt csharp sample #1512

Merged
merged 1 commit into from Feb 2, 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
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[]