Skip to content

Commit 56cd9e7

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

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy