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.
15 lines
481 B
Plaintext
15 lines
481 B
Plaintext
/**
|
|
* @name Total lines of Python code in the database
|
|
* @description The total number of lines of Python code across all files, including
|
|
* external libraries and auto-generated files. This is a useful metric of the size of a
|
|
* database. This query counts the lines of code, excluding whitespace or comments.
|
|
* @kind metric
|
|
* @tags summary
|
|
* telemetry
|
|
* @id py/summary/lines-of-code
|
|
*/
|
|
|
|
import python
|
|
|
|
select sum(ModuleMetrics m | | m.getNumberOfLinesOfCode())
|