mirror of
https://github.com/github/codeql.git
synced 2026-01-17 08:24:46 +01:00
16 lines
351 B
Plaintext
16 lines
351 B
Plaintext
/**
|
|
* @name Number of statements in files
|
|
* @description The number of statements in a file.
|
|
* @kind treemap
|
|
* @treemap.warnOn highValues
|
|
* @metricType file
|
|
* @metricAggregate avg sum max
|
|
* @id js/statements-per-file
|
|
*/
|
|
|
|
import javascript
|
|
|
|
from File f, int n
|
|
where n = count(Stmt s | s.getTopLevel().getFile() = f)
|
|
select f, n order by n desc
|