Files
codeql/javascript/ql/src/Comments/FCommentedOutCode.ql
2021-03-25 15:12:09 +00:00

16 lines
432 B
Plaintext

/**
* @name Lines of commented-out code in files
* @description Measures the number of commented-out lines of code in each file.
* @kind treemap
* @treemap.warnOn highValues
* @metricType file
* @metricAggregate avg sum max
* @id js/lines-of-commented-out-code-in-files
* @tags maintainability
*/
import CommentedOut
from File f
select f, sum(CommentedOutCode comment | comment.getFile() = f | comment.getNumCodeLines())