Skip to content

Commit ac52a1b

Browse files
committed
Java: Move extractorInformationSkipKey predicate to library pack
1 parent 9d72fab commit ac52a1b

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

java/ql/integration-tests/kotlin/all-platforms/extractor_information_kotlin1/ExtractorInformation.ext.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
extensions:
22
- addsTo:
3-
pack: codeql/java-queries
3+
pack: codeql/java-all
44
extensible: extractorInformationSkipKey
55
data:
66
# These will have unstable values, as they are dependent on the

java/ql/integration-tests/kotlin/all-platforms/extractor_information_kotlin2/ExtractorInformation.ext.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
extensions:
22
- addsTo:
3-
pack: codeql/java-queries
3+
pack: codeql/java-all
44
extensible: extractorInformationSkipKey
55
data:
66
# These will have unstable values, as they are dependent on the

java/ql/lib/semmle/code/java/Diagnostics.qll

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,9 @@ class Diagnostic extends @diagnostic {
6161
/** Gets a textual representation of this diagnostic. */
6262
string toString() { result = this.getMessage() }
6363
}
64+
65+
/**
66+
* Holds for extraction information keys that should be skipped from telemetry reports.
67+
* This predicate can be extended by other packs to filter out specific telemetry keys.
68+
*/
69+
extensible predicate extractorInformationSkipKey(string key);

java/ql/src/Telemetry/ExtractorInformation.ql

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ import java
1010
import semmle.code.java.Diagnostics
1111
import DatabaseQuality
1212

13-
extensible predicate extractorInformationSkipKey(string key);
14-
1513
predicate compilationInfo(string key, int value) {
1614
exists(Compilation c, string infoKey |
1715
key = infoKey + ": " + c.getInfo(infoKey) and
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
extensions:
22
- addsTo:
3-
pack: codeql/java-queries
3+
pack: codeql/java-all
44
extensible: extractorInformationSkipKey
55
data: []

0 commit comments

Comments
 (0)