Files
codeql/python/ql/src/Metrics/FunctionStatementNestingDepth.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

17 lines
411 B
Plaintext

/**
* @name Statement nesting depth
* @description The maximum nesting depth of statements in a function.
* @kind treemap
* @id py/statement-nesting-depth-per-function
* @treemap.warnOn highValues
* @metricType callable
* @metricAggregate avg max
* @tags maintainability
* complexity
*/
import python
from FunctionMetrics func
select func, func.getStatementNestingDepth() as n order by n desc