Files
codeql/javascript/ql/src/Metrics/FunLinesOfCode.ql
2018-08-02 17:53:23 +01:00

17 lines
385 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