mirror of
https://github.com/github/codeql.git
synced 2026-02-19 08:23:45 +01:00
18 lines
386 B
Plaintext
18 lines
386 B
Plaintext
/**
|
|
* @name Lines of comments in files
|
|
* @description The number of lines of comment in a file.
|
|
* @kind treemap
|
|
* @treemap.warnOn lowValues
|
|
* @metricType file
|
|
* @metricAggregate avg sum max
|
|
* @id java/lines-of-comments-in-files
|
|
* @tags maintainability
|
|
* documentation
|
|
*/
|
|
|
|
import java
|
|
|
|
from File f, int n
|
|
where n = f.getNumberOfCommentLines()
|
|
select f, n order by n desc
|