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

While the interpretation of 'excessive volume' may vary for each product or developer, CISQ recommends a default threshold of 2% of commented code.

Common Consequences

other
Impacts
reduce maintainability

Detection Methods

automated static analysis

Potential Mitigations