Files
codeql/python/ql/src/Metrics/NumberOfStatements.ql
2018-11-19 15:10:42 +00:00

16 lines
350 B
Plaintext

/**
* @name Number of statements
* @description The number of statements in this module
* @kind treemap
* @id py/number-of-statements-per-file
* @treemap.warnOn highValues
* @metricType file
* @metricAggregate avg sum max
*/
import python
from Module m, int n
where n = count(Stmt s | s.getEnclosingModule() = m)
select m, n
order by n desc