Files
codeql/javascript/ql/src/Comments/FCommentedOutCode.ql
Anders Schack-Mulligen e58094c732 Javascript: Autoformat.
2019-01-11 11:02:42 +01:00

17 lines
451 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
* @precision high
* @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())