Lines of commented-out code in files¶
ID: java/lines-of-commented-out-code-in-files
Kind: treemap
Severity:
Precision:
Tags:
- maintainability
- documentation
Click to see the query in the CodeQL repository
This metric counts the number of lines of commented-out code in each file. Large amounts of commented-out code often indicate poorly maintained code.
References¶
Mark Needham: The danger of commenting out code.
Los Techies: Commented Code == Technical Debt.
High Integrity C++ Coding Standard: 2.3.2 Do not comment out code.