Version
CA020 - Variable not read after assignment
Description
An assignment to a local variable has not effect at all if the variable is not read after the assignment, or reassigned.
Scope | Instruction |
Status | Enabled |
Severity | Warning |
Applicability | All |
Score | 70 |
Example of violation
Recommendation
Remove the assignment without effect.
In the example, remove the first assignment to
Back to Rules
cached: 11/18/2024 2:05:56.000 PM