Files
codeql/csharp/ql/src/Metrics/Files/FLinesOfCode.ql
2021-03-25 09:50:24 +01:00

17 lines
431 B
Plaintext

/**
* @name Lines of code in files
* @description Files with a large number of lines might be difficult to understand and increase the chance of merge conflicts.
* @kind treemap
* @treemap.warnOn highValues
* @metricType file
* @metricAggregate avg sum max
* @id cs/lines-of-code-in-files
* @tags maintainability
* complexity
*/
import csharp
from File f
select f, f.getNumberOfLinesOfCode() as n order by n desc