-
Notifications
You must be signed in to change notification settings - Fork 301
OptionBaseInspection
Description: Potentially confusing implicit array lower bound
Type: CodeInspectionType.MaintainabilityAndReadabilityIssues
Default severity: CodeInspectionSeverity.Hint
This inspection finds code modules that specify Option Base 1
.
###Example:
Option Base 1
This code is potentially confusing, because arrays typically have a base index of 0; a maintainer could easily introduce off-by-one bugs when this option is enabled.
###QuickFixes
This inspection does not have any quickfix implemented in version 1.2; future versions may include one.
Before Option Base 1
can be safely removed, all implicitly-based array usages must be evaluated to ensure rebasing the array wouldn't introduce off-by-one issues.
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