Files
codeql/python/ql/src/Metrics/CLinesOfCode.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
365 B
Plaintext

/**
* @name Lines of code in functions
* @description The number of lines of code in a function.
* @kind treemap
* @id py/lines-of-code-per-function
* @treemap.warnOn highValues
* @metricType callable
* @metricAggregate avg sum max
* @tags maintainability
*/
import python
from FunctionMetrics f
select f, f.getNumberOfLinesOfCode() as n order by n desc