Parameter Not Used

Identifies parameter declarations that are not used.

Remarks

Not all unused parameters can/should be removed: ignore any inspection results for event handler procedures and interface members that Rubberduck isn't recognizing as such.

Reasoning

Declarations that are not used anywhere should probably be removed.

Default severity

Warning

Inspection type

CodeQualityIssues

Examples

This example should trigger a result

MyModule (StandardModule)
Option Explicit Public Sub DoSomething(ByVal foo As Long, ByVal bar As Long) Debug.Print foo End Sub

This example should NOT trigger a result

MyModule (StandardModule)
Option Explicit Public Sub DoSomething(ByVal foo As Long, ByVal bar As Long) Debug.Print foo, bar End Sub

Rubberduck.CodeAnalysis.Inspections.Concrete.ParameterNotUsedInspection.cs (Prerelease-v2.5.9.6289)