Files
codeql/javascript/ql/src/Metrics/FunLinesOfCode.ql
2021-03-25 15:12:09 +00:00

16 lines
362 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
* @tags maintainability
* @id js/lines-of-code-per-function
*/
import javascript
from Function f
select f, f.getNumberOfLinesOfCode() as n order by n desc