Mark lines of code queries as telemetry queries

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.
This commit is contained in:
Henry Mercer
2024-03-11 16:38:33 +00:00
parent 43f1189615
commit c325ff8a23
11 changed files with 11 additions and 0 deletions

View File

@@ -4,6 +4,7 @@
* @kind metric
* @tags summary
* lines-of-code
* telemetry
* @id cpp/summary/lines-of-user-code
*/

View File

@@ -5,6 +5,7 @@
* @kind metric
* @tags summary
* lines-of-code
* telemetry
*/
import csharp

View File

@@ -5,6 +5,7 @@
* @kind metric
* @tags summary
* lines-of-code
* telemetry
*/
import go

View File

@@ -7,6 +7,7 @@
* @kind metric
* @tags summary
* lines-of-code
* telemetry
*/
import java

View File

@@ -6,6 +6,7 @@
* @kind metric
* @tags summary
* lines-of-code
* telemetry
* @id js/summary/lines-of-user-code
*/

View File

@@ -8,6 +8,7 @@
* @kind metric
* @tags summary
* lines-of-code
* telemetry
* @id py/summary/lines-of-user-code
*/

View File

@@ -8,6 +8,7 @@
* @kind metric
* @tags summary
* lines-of-code
* telemetry
*/
import ql

View File

@@ -6,6 +6,7 @@
* query counts the lines of code, excluding whitespace or comments.
* @kind metric
* @tags summary
* telemetry
*/
import ql

View File

@@ -8,6 +8,7 @@
* @kind metric
* @tags summary
* lines-of-code
* telemetry
*/
import codeql.ruby.AST

View File

@@ -6,6 +6,7 @@
* query counts the lines of code, excluding whitespace or comments.
* @kind metric
* @tags summary
* telemetry
*/
import codeql.ruby.AST

View File

@@ -4,6 +4,7 @@
* @kind metric
* @id swift/diagnostics/successfully-extracted-lines
* @tags summary
* telemetry
*/
import swift