rspec/rules/S1301/vbnet/rule.adoc

43 lines
601 B
Plaintext
Raw Permalink Normal View History

== Why is this an issue?
include::../description.adoc[]
=== Noncompliant code example
2022-02-04 17:28:24 +01:00
[source,vbnet]
----
Select Case variable
Case 0
doSomething()
Case Else
doSomethingElse()
End Select
----
=== Compliant solution
2022-02-04 17:28:24 +01:00
[source,vbnet]
----
If variable = 0 Then
doSomething()
Else
doSomethingElse()
End If
----
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[]