Files
codeql/javascript/ql/src/Metrics/FunLinesOfCode.ql
2019-01-07 10:15:45 +00:00

17 lines
386 B
Plaintext

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