-
Notifications
You must be signed in to change notification settings - Fork 301
MultipleDeclarationsInspection
Max Dörner edited this page Jun 2, 2019
·
3 revisions
Description: Instruction contains multiple declarations
Type: CodeInspectionType.MaintainabilityAndReadabilityIssues
Default severity: CodeInspectionSeverity.Suggestion
This inspection finds instructions that declare multiple identifiers.
This instruction declares multiple identifiers:
Dim foo As Integer, bar As Integer
Although it's allowed by the language, declaring multiple identifiers on the same instruction often makes the code harder to read and to maintain.
QuickFix: Separate multiple declarations into multiple instructions
Dim foo As Integer
Dim bar As Integer
By declaring a single variable per instruction, a maintainer can more easily locate where a variable is declared.
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