CWE-1085
Invokable Control Element with Excessive Volume of Commented-out Code
AI Translation Available
A function, method, procedure, etc. contains an excessive amount of code that has been
commented out within its body.
Status
incomplete
Abstraction
base
Affected Platforms
Extended Description
AI Translation
While the interpretation of 'excessive volume' may vary for each product or developer, CISQ recommends a default threshold of 2% of commented code.
Technical Details
AI Translation
Common Consequences
other
Impacts
reduce maintainability
Detection Methods
automated static analysis