...
When the block is small, the danger of reusing variable names is mitigated by the visibility of the immediate declaration. Even in this case, however, variable name reuse is not desirable. In general, the larger the declarative region of an identifier, the more descriptive and verbose should be the name of the identifier.
...
Recommendation | Severity | Likelihood | Remediation Cost | Priority | Level |
---|---|---|---|---|---|
DCL00DCL01-PL | lowLow | probableProbable | mediumMedium | P2P4 | L3 |
Automated Detection
Tool | Version | Checker | Description |
---|---|---|---|
B::Lint | 5.0 | .* masks earlier declaration in same scope | Implemented |
Related Guidelines
...
...
...
...
...
...
...
Automated Detection
Tool | Diagnostic |
---|---|
B::Lint | .* masks earlier declaration in same scope |
Bibliography
...
EXP30-PL. Do not use deprecated or obsolete functions 02. Expressions