mirror of
https://github.com/github/codeql.git
synced 2025-12-28 22:56:32 +01:00
19 lines
465 B
Plaintext
19 lines
465 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
|
|
* @precision very-high
|
|
* @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
|