mirror of
https://github.com/github/codeql.git
synced 2025-12-29 23:26:34 +01:00
17 lines
380 B
Plaintext
17 lines
380 B
Plaintext
/**
|
|
* @name Number of functions in files
|
|
* @description The number of functions in a file.
|
|
* @kind treemap
|
|
* @treemap.warnOn highValues
|
|
* @metricType file
|
|
* @metricAggregate avg sum max
|
|
* @precision very-high
|
|
* @id js/functions-per-file
|
|
*/
|
|
|
|
import javascript
|
|
|
|
from File f, int n
|
|
where n = count(Function fun | fun.getTopLevel().getFile() = f)
|
|
select f, n order by n desc
|