Assignment Not Used
Warns about a local variable that is assigned and never read. Or, warns about a local variable that is assigned and then re-assigned before using the previous value.
Reasoning
An assignment that is never used is a meaningless statement that was likely used by an execution path in a prior version of the module.
Default severity
Suggestion
Inspection type
CodeQualityIssues
Examples
This example should trigger a result
This example should trigger a result
This example should NOT trigger a result
Rubberduck.CodeAnalysis.Inspections.Concrete.AssignmentNotUsedInspection.cs (Prerelease-v2.5.9.6289)