Files
codeql/python/ql/src/Metrics/FLines.ql
Taus e8de8433f4 Python: Update all metrics-dependant queries
The ones that no longer require points-to no longer import
`LegacyPointsTo`. The ones that do use the specific
`...MetricsWithPointsTo` classes that are applicable.
2026-02-19 12:32:27 +00:00

16 lines
310 B
Plaintext

/**
* @name Number of lines
* @description The number of lines in each file.
* @kind treemap
* @id py/lines-per-file
* @treemap.warnOn highValues
* @metricType file
* @metricAggregate avg sum max
*/
import python
from ModuleMetrics m, int n
where n = m.getNumberOfLines()
select m, n order by n desc