rspec/rules/S1656/vbnet/rule.adoc

41 lines
646 B
Plaintext
Raw Normal View History

== Why is this an issue?
2020-06-30 12:47:33 +02:00
include::../description.adoc[]
=== Code examples
2020-06-30 12:47:33 +02:00
==== Noncompliant code example
[source,vbnet,diff-id=1,diff-type=noncompliant]
2020-06-30 12:47:33 +02:00
----
Public Sub SetName(name As String)
name = name ' Noncompliant
2020-06-30 12:47:33 +02:00
End Sub
----
==== Compliant solution
2020-06-30 12:47:33 +02:00
[source,diff-id=1,diff-type=compliant]
2020-06-30 12:47:33 +02:00
----
Public Sub SetName(name As String)
Me.name = name ' Compliant
2020-06-30 12:47:33 +02:00
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[]