mirror of
https://github.com/github/codeql.git
synced 2026-03-30 20:28:15 +02:00
The ones that no longer require points-to no longer import `LegacyPointsTo`. The ones that do use the specific `...MetricsWithPointsTo` classes that are applicable.
18 lines
458 B
Plaintext
18 lines
458 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
|
|
* @tags maintainability
|
|
* @id py/lines-of-code-in-files
|
|
*/
|
|
|
|
import python
|
|
|
|
from ModuleMetrics m, int n
|
|
where n = m.getNumberOfLinesOfCode()
|
|
select m, n order by n desc
|