Skip to content

Commit 5696146

Browse files
committed
Java: Convert telemetry queries to summary metrics
Use the support for summary metrics with messages that'll be in the next version of the CodeQL CLI.
1 parent b53e349 commit 5696146

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

java/ql/src/Telemetry/ExternalLibraryUsage.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @name External libraries
33
* @description A list of external libraries used in the code
44
* @kind metric
5-
* @metricType callable
5+
* @tags summary
66
* @id java/telemetry/external-libs
77
*/
88

java/ql/src/Telemetry/SupportedExternalSinks.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/**
22
* @name Supported sinks in external libraries
33
* @description A list of 3rd party APIs detected as sinks. Excludes test and generated code.
4-
* @id java/telemetry/supported-external-api-sinks
54
* @kind metric
6-
* @metricType callable
5+
* @tags summary
6+
* @id java/telemetry/supported-external-api-sinks
77
*/
88

99
import java

java/ql/src/Telemetry/SupportedExternalSources.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/**
22
* @name Supported sources in external libraries
33
* @description A list of 3rd party APIs detected as sources. Excludes test and generated code.
4-
* @id java/telemetry/supported-external-api-sources
54
* @kind metric
6-
* @metricType callable
5+
* @tags summary
6+
* @id java/telemetry/supported-external-api-sources
77
*/
88

99
import java

java/ql/src/Telemetry/SupportedExternalTaint.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/**
22
* @name Supported sinks in external libraries
33
* @description A list of 3rd party APIs detected as sinks. Excludes test and generated code.
4-
* @id java/telemetry/supported-external-api-taint
54
* @kind metric
6-
* @metricType callable
5+
* @tags summary
6+
* @id java/telemetry/supported-external-api-taint
77
*/
88

99
import java

java/ql/src/Telemetry/UnsupportedExternalAPIs.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/**
22
* @name Usage of unsupported APIs coming from external libraries
33
* @description A list of 3rd party APIs used in the codebase. Excludes test and generated code.
4-
* @id java/telemetry/unsupported-external-api
54
* @kind metric
6-
* @metricType callable
5+
* @tags summary
6+
* @id java/telemetry/unsupported-external-api
77
*/
88

99
import java

0 commit comments

Comments
 (0)