rspec/rules/S2371/rule.adoc
Arseniy Zaostrovnykh 7ca29f686f Force linebreaks
2021-02-02 15:02:10 +01:00

28 lines
630 B
Plaintext

Reserved parameters are unnecessary in VB.NET because method overloading can be used to introduce additional variants over time.
This rule detects parameters which contain ``++reserved++`` in their names.
== Noncompliant Code Example
----
Module Module1
Function Add(ByVal a As Integer, ByVal b As Integer, ByVal reserved As Integer) As Integer ' Noncompliant
Return a + b
End Function
End Module
----
== Compliant Solution
----
Module Module1
Function Add(ByVal a As Integer, ByVal b As Integer) As Integer ' Compliant
Return a + b
End Function
End Module
----