Files
codeql/python/ql/src/Metrics/NumberOfStatements.ql
2020-03-30 11:59:10 +02:00

16 lines
351 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