Files
codeql/javascript/ql/src/Metrics/FLinesOfComment.ql
2019-01-07 10:15:45 +00:00

17 lines
437 B
Plaintext

/**
* @name Lines of comments in files
* @description Files with few lines of comment might not have sufficient documentation to make them understandable.
* @kind treemap
* @treemap.warnOn lowValues
* @metricType file
* @metricAggregate avg sum max
* @precision very-high
* @id js/lines-of-comments-in-files
* @tags documentation
*/
import javascript
from File f
select f, f.getNumberOfLinesOfComments() as n order by n desc