rspec/rules/S3603/vbnet/rule.adoc

43 lines
732 B
Plaintext

== Why is this an issue?
include::../description.adoc[]
=== Noncompliant code example
[source,vbnet]
----
Class Person
Private age As Integer
<Pure> ' Noncompliant. In this case the method makes a possibly visible state change
Private Sub ConfigureAge(ByVal age As Integer)
...
Me.age = age
End Sub
End Class
----
=== Compliant solution
[source,vbnet]
----
Class Person
Private age As Integer
Private Sub ConfigureAge(ByVal age As Integer)
Me.age = age
End Sub
End Class
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::../message.adoc[]
include::../highlighting.adoc[]
endif::env-github,rspecator-view[]