Skip to content

Commit

Permalink
Mark lines of code queries as telemetry queries
Browse files Browse the repository at this point in the history
The new file coverage metrics are available in all supported GHES
versions. This PR tags lines of code queries as telemetry queries. Lines
of code information will still be available in the SARIF file, but it
will no longer be displayed in the logging output of the CLI.

The one exception is the metric queries for Java/Kotlin that provides
separate lines of code information for Java and Kotlin. I've kept these
since separate file coverage information for languages like Java and
Kotlin is only available for GHES 3.12 and later.
  • Loading branch information
henrymercer committed Mar 11, 2024
1 parent 43f1189 commit c325ff8
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions cpp/ql/src/Summary/LinesOfUserCode.ql
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @kind metric
* @tags summary
* lines-of-code
* telemetry
* @id cpp/summary/lines-of-user-code
*/

Expand Down
1 change: 1 addition & 0 deletions csharp/ql/src/Metrics/Summaries/LinesOfCode.ql
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* @kind metric
* @tags summary
* lines-of-code
* telemetry
*/

import csharp
Expand Down
1 change: 1 addition & 0 deletions go/ql/src/Summary/LinesOfCode.ql
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* @kind metric
* @tags summary
* lines-of-code
* telemetry
*/

import go
Expand Down
1 change: 1 addition & 0 deletions java/ql/src/Metrics/Summaries/LinesOfCode.ql
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* @kind metric
* @tags summary
* lines-of-code
* telemetry
*/

import java
Expand Down
1 change: 1 addition & 0 deletions javascript/ql/src/Summary/LinesOfUserCode.ql
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @kind metric
* @tags summary
* lines-of-code
* telemetry
* @id js/summary/lines-of-user-code
*/

Expand Down
1 change: 1 addition & 0 deletions python/ql/src/Summary/LinesOfUserCode.ql
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* @kind metric
* @tags summary
* lines-of-code
* telemetry
* @id py/summary/lines-of-user-code
*/

Expand Down
1 change: 1 addition & 0 deletions ql/ql/src/queries/summary/LinesOfCode.ql
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* @kind metric
* @tags summary
* lines-of-code
* telemetry
*/

import ql
Expand Down
1 change: 1 addition & 0 deletions ql/ql/src/queries/summary/LinesOfUserCode.ql
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* query counts the lines of code, excluding whitespace or comments.
* @kind metric
* @tags summary
* telemetry
*/

import ql
Expand Down
1 change: 1 addition & 0 deletions ruby/ql/src/queries/summary/LinesOfCode.ql
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* @kind metric
* @tags summary
* lines-of-code
* telemetry
*/

import codeql.ruby.AST
Expand Down
1 change: 1 addition & 0 deletions ruby/ql/src/queries/summary/LinesOfUserCode.ql
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* query counts the lines of code, excluding whitespace or comments.
* @kind metric
* @tags summary
* telemetry
*/

import codeql.ruby.AST
Expand Down
1 change: 1 addition & 0 deletions swift/ql/src/diagnostics/SuccessfullyExtractedLines.ql
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @kind metric
* @id swift/diagnostics/successfully-extracted-lines
* @tags summary
* telemetry
*/

import swift
Expand Down

0 comments on commit c325ff8

Please sign in to comment.