There was an error while loading. Please reload this page.
1 parent 6adff6f commit f6c8b07Copy full SHA for f6c8b07
1 file changed
ql/src/queries/summary/LinesOfCode.ql
@@ -0,0 +1,13 @@
1
+/**
2
+ * @id rb/summary/lines-of-code
3
+ * @name Total lines of Ruby code in the database
4
+ * @description The total number of lines of Ruby code across all files,
5
+ * including vendored code, tests. This query counts the lines of code,
6
+ * excluding whitespace or comments.
7
+ * @kind metric
8
+ * @tags summary
9
+ */
10
+
11
+import ruby
12
13
+select sum(File f | | f.getNumberOfLinesOfCode())
0 commit comments