mirror of
https://github.com/github/codeql.git
synced 2025-12-29 07:06:43 +01:00
19 lines
488 B
Plaintext
19 lines
488 B
Plaintext
/**
|
|
* @name Lines of code in files
|
|
* @kind treemap
|
|
* @description Measures the number of lines of code in each file (ignoring lines that
|
|
* contain only docstrings, comments or are blank).
|
|
* @treemap.warnOn highValues
|
|
* @metricType file
|
|
* @metricAggregate avg sum max
|
|
* @precision very-high
|
|
* @tags maintainability
|
|
* @id py/lines-of-code-in-files
|
|
*/
|
|
|
|
import python
|
|
|
|
from Module m, int n
|
|
where n = m.getMetrics().getNumberOfLinesOfCode()
|
|
select m, n order by n desc
|