Skip to content

Commit f378513

Browse files
committed
Add lines-of-code tags
This is a proposed method for advertising which queries are measuring the lines of code in a project in a more robust manner than inspecting the rule id. Note that the python "LinesOfUserCode" query should _not_ have this property, as otherwise the results of the two queries will be summed.
1 parent 9b0c24a commit f378513

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

cpp/ql/src/Summary/LinesOfCode.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* @description The total number of lines of C/C++ code across all files, including system headers, libraries, and auto-generated files. This is a useful metric of the size of a database. For all files that were seen during the build, this query counts the lines of code, excluding whitespace or comments.
55
* @kind metric
66
* @tags summary
7+
* lines-of-code
78
*/
89

910
import cpp

csharp/ql/src/Metrics/Summaries/LinesOfCode.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* @description The total number of lines of code across all files. This is a useful metric of the size of a database. For all files that were seen during the build, this query counts the lines of code, excluding whitespace or comments.
55
* @kind metric
66
* @tags summary
7+
* lines-of-code
78
*/
89

910
import csharp

java/ql/src/Metrics/Summaries/LinesOfCode.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* or comments.
77
* @kind metric
88
* @tags summary
9+
* lines-of-code
910
*/
1011

1112
import java

javascript/ql/src/Summary/LinesOfCode.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* @description The total number of lines of JavaScript or TypeScript code across all files checked into the repository, except in `node_modules`. This is a useful metric of the size of a database. For all files that were seen during extraction, this query counts the lines of code, excluding whitespace or comments.
55
* @kind metric
66
* @tags summary
7+
* lines-of-code
78
*/
89

910
import javascript

python/ql/src/Summary/LinesOfCode.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* database. This query counts the lines of code, excluding whitespace or comments.
66
* @kind metric
77
* @tags summary
8+
* lines-of-code
89
* @id py/summary/lines-of-code
910
*/
1011

0 commit comments

Comments
 (0)