Skip to content

Enumeration values used as method parameters or default parameter values trigger variable code inspections #5848

@FullValueRider

Description

@FullValueRider

Rubberduck version information

Version 2.5.2.5958

OS: Microsoft Windows NT 10.0.19043.0, x64
Host Product: Microsoft Office x64
Host Version: 16.0.14228.20226
Host Executable: WINWORD.EXE

Description
Enumeration values used as parameters or as default values for method parameters are triggering the following code inspections

• UnassignedVariableUsageInspection
• UndeclaredVariableInspection
• VariableNotAssignedInspection

The affected public enumerations sit in Class definitions. Moving the enum declaration to a Module eliminates the code inspections.

Metadata

Metadata

Assignees

Labels

bugIdentifies work items for known bugsfeature-inspectionsinspection-false-positiveA bug where an inspection result appears, even though it is incorrect.resolverIssue is easier to resolve with knowledge of the internal resolver API and the Antlr4 parse trees.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions