Files
codeql/java/ql/src/Metrics/Summaries/LinesOfCodeJava.ql
Ian Lynagh c12adbeeaa Java/Kotlin: Tag the LoC queries 'debug'
This brings them into line with LinesOfCode.ql
2024-06-25 15:46:10 +01:00

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())