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

16 lines
371 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 Function f
select f, f.getMetrics().getNumberOfLinesOfCode() as n order by n desc