We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1caa610 commit c58ad9fCopy full SHA for c58ad9f
RetailCoder.VBE/Inspections/VariableNotAssignedInspection.cs
@@ -21,6 +21,7 @@ public IEnumerable<CodeInspectionResultBase> GetInspectionResults(VBProjectParse
21
var declarations = parseResult.Declarations.Items.Where(declaration =>
22
!declaration.IsBuiltIn
23
&& declaration.DeclarationType == DeclarationType.Variable
24
+ && !declaration.IsArray() // ignore arrays... not ideal though
25
&& !parseResult.Declarations.Items.Any(item =>
26
item.IdentifierName == declaration.AsTypeName
27
&& item.DeclarationType == DeclarationType.UserDefinedType) // UDT variables don't need to be assigned
0 commit comments