mirror of
https://github.com/github/codeql.git
synced 2025-12-24 12:46:34 +01:00
16 lines
432 B
Plaintext
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())
|