Files
codeql/python/ql/src/Metrics/CLinesOfCode.ql
2018-11-19 15:10:42 +00:00

15 lines
369 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