FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
codeql/java/ql/src/Metrics/Summaries/LinesOfCodeJava.ql at main · github/codeql · GitHub
github
codeql
Repository navigation
Code
Issues
1k
(1k)
Pull requests
473
(473)
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
codeql
/
java
/
ql
/
src
/
Metrics
/
Summaries
/
LinesOfCodeJava.ql
Copy path
More file actions
More file actions
Latest commit
History
History
History
14 lines (12 loc) · 539 Bytes
Breadcrumbs
codeql
/
java
/
ql
/
src
/
Metrics
/
Summaries
/
LinesOfCodeJava.ql
Copy path
File metadata and controls
14 lines (12 loc) · 539 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/**
* @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
(
)
)
Back
|
FazBrowse Home
|
New Git URL