Variable is assigned to itself (SelfAssign)¶
Type | Scope | Severity | Activated by default |
Minutes to fix |
Tags |
---|---|---|---|---|---|
Error |
BSL OS |
Major |
Yes |
10 |
suspicious |
Description¶
It is meaningless to assign a variable to itself and usually points to an error.
Snippets¶
Diagnostic ignorance in code¶
// BSLLS:SelfAssign-off
// BSLLS:SelfAssign-on
Parameter for config¶
"SelfAssign": false