mirror of
https://github.com/github/codeql.git
synced 2025-12-23 04:06:37 +01:00
17 lines
456 B
Plaintext
17 lines
456 B
Plaintext
/**
|
|
* @name Lines of commented-out code in files
|
|
* @description The number of lines of commented out code per file
|
|
* @kind treemap
|
|
* @treemap.warnOn highValues
|
|
* @metricType file
|
|
* @tags maintainability
|
|
* @id py/lines-of-commented-out-code-in-files
|
|
*/
|
|
|
|
import python
|
|
import Lexical.CommentedOutCode
|
|
|
|
from File f, int n
|
|
where n = count(CommentedOutCodeLine c | not c.maybeExampleCode() and c.getLocation().getFile() = f)
|
|
select f, n order by n desc
|