rspec/rules/S1068/vb6/rule.adoc
Fred Tingaud 281206d0f4
Modify S1068: Migrate to LayC - unused private fields
Co-authored-by: Renaud T. <125455319+renaud-tognelli-sonarsource@users.noreply.github.com>
2023-10-10 18:27:17 +02:00

32 lines
543 B
Plaintext

== Why is this an issue?
include::../description.adoc[]
[source,vb6]
----
Private Foo as Integer 'Noncompliant: Foo is unused and should be removed
Function Compute(A As Integer)
Compute = A * 42
End Function
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
=== Message
Remove this unused "xxx" private variable. It is set n times but never read.
'''
== Comments And Links
(visible only on this page)
include::../comments-and-links.adoc[]
endif::env-github,rspecator-view[]