mirror of
https://github.com/github/codeql.git
synced 2025-12-31 08:06:36 +01:00
16 lines
351 B
Plaintext
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
|