mirror of
https://github.com/github/codeql.git
synced 2026-02-19 08:23:45 +01:00
rb/summary/lines-of-code
This commit is contained in:
13
ql/src/queries/summary/LinesOfCode.ql
Normal file
13
ql/src/queries/summary/LinesOfCode.ql
Normal file
@@ -0,0 +1,13 @@
|
||||
/**
|
||||
* @id rb/summary/lines-of-code
|
||||
* @name Total lines of Ruby code in the database
|
||||
* @description The total number of lines of Ruby code across all files,
|
||||
* including vendored code, tests. This query counts the lines of code,
|
||||
* excluding whitespace or comments.
|
||||
* @kind metric
|
||||
* @tags summary
|
||||
*/
|
||||
|
||||
import ruby
|
||||
|
||||
select sum(File f | | f.getNumberOfLinesOfCode())
|
||||
Reference in New Issue
Block a user