Undeclared Variable
Warns about implicit local variables that are used but never declared.
NEW! This inspection is only available in pre-release builds.
Reasoning
If this code compiles, then Option Explicit is omitted and compile-time validation is easily forfeited, even accidentally (e.g. typos).
Default severity
Error
Inspection type
CodeQualityIssues
QuickFixes
The following quickfixes are available for this inspection:
Examples
This example should trigger a result
This example should NOT trigger a result
Rubberduck.CodeAnalysis.Inspections.Concrete.UndeclaredVariableInspection.cs (Prerelease-v2.5.2.6174)