mirror of
https://github.com/github/codeql.git
synced 2026-08-06 10:18:43 +02:00
15 lines
539 B
Plaintext
15 lines
539 B
Plaintext
/**
|
|
* @id java/summary/lines-of-code-java
|
|
* @name Total lines of Java code in the database
|
|
* @description The total number of lines of code across all Java files. This is a useful metric of the size of a database.
|
|
* For all Java files that were seen during the build, this query counts the lines of code, excluding whitespace
|
|
* or comments.
|
|
* @kind metric
|
|
* @tags summary
|
|
* debug
|
|
*/
|
|
|
|
import java
|
|
|
|
select sum(CompilationUnit f | f.fromSource() and f.isJavaSourceFile() | f.getNumberOfLinesOfCode())
|