-
Notifications
You must be signed in to change notification settings - Fork 301
ParameterNotUsedInspection
Description: Parameter is not used
Type: CodeInspectionType.CodeQualityIssues
Default severity: CodeInspectionSeverity.Warning
This inspection finds procedure parameters that are not used within the procedure they are declared for.
Parameter foo
is not used in this method.
Public Sub DoSomething(foo As Integer)
Dim bar As Integer
bar = 42
DoSomethingElse bar
End Sub
Parameter foo
could be removed without affecting the procedure's logic.
This inspection does not have any quickfixes implemented in version 1.2; future versions will suggest a change signature refactoring involving the removal of the unused parameter. It would be trivial to simply remove the parameter from the signature, but doing so without inspecting every call to that procedure may break the code - hence this quickfix is postponed until a change signature refactoring is implemented.
rubberduckvba.com
© 2014-2021 Rubberduck project contributors
- Contributing
- Build process
- Version bump
- Architecture Overview
- IoC Container
- Parser State
- The Parsing Process
- How to view parse tree
- UI Design Guidelines
- Strategies for managing COM object lifetime and release
- COM Registration
- Internal Codebase Analysis
- Projects & Workflow
- Adding other Host Applications
- Inspections XML-Doc
-
VBE Events