
...
The presence dead code may indicate logic errors that can lead to unintended program behavior. As a result, resolving dead code can be an in-depth process requiring significant analysis.
Recommendation | Severity | Likelihood | Remediation Cost | Priority | Level |
---|---|---|---|---|---|
MSC00-PL | low | unlikely | high | P1 | L3 |
Automated Detection
Tool | Diagnostic |
---|---|
Perl::Critic | Subroutines::ProhibitUnusedPrivateSubroutines |
Perl::Critic | ControlStructures::ProhibitUnreachableCode |
CWE561P1 |
Related Guidelines
SEI CERT C Coding Standard | MSC07-C. Detect and remove dead code |
---|---|
SEI CERT C++ |
Coding Standard | VOID MSC07-CPP. Detect and remove dead code |
Bibliography
[CPAN] | Elliot Shank, Perl-Critic-1.116 Subroutines::ProhibitUnusedPrivateSubroutines, Variables::ProhibitUnreachableCode |
---|
...
...