Version
- Tags:
- analysis
- unneeded code
CA005 - Useless object test local
Description
For local variables and feature arguments it is unnecessary to use an object test to check their attachment status.
Scope feature Status Enabled Severity Suggestion Applicability All Score 40
Example of violation
Recommendation
Remove the object test local, or replace the object test and use a comparison to
In the example, it can simply be:
or
Back to Rules
cached: 10/04/2024 10:55:18.000 AM