mirror of
https://github.com/github/codeql.git
synced 2026-01-03 01:30:19 +01:00
18 lines
441 B
Plaintext
18 lines
441 B
Plaintext
/**
|
|
* @name Lines of code in files
|
|
* @kind treemap
|
|
* @description Measures the number of lines of code in each file, ignoring lines that
|
|
* contain only comments or whitespace.
|
|
* @treemap.warnOn highValues
|
|
* @metricType file
|
|
* @metricAggregate avg sum max
|
|
* @id js/lines-of-code-in-files
|
|
* @tags maintainability
|
|
*/
|
|
|
|
import javascript
|
|
|
|
from File f, int n
|
|
where n = f.getNumberOfLinesOfCode()
|
|
select f, n order by n desc
|