Skip to content

Commit 87ee979

Browse files
committed
Java/Kotlin: Add compilation info to telemetry
This will give info about which kotlinc versions are used.
1 parent ecd8921 commit 87ee979

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

java/ql/src/Telemetry/ExtractorInformation.ql

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@
99
import java
1010
import semmle.code.java.Diagnostics
1111

12+
predicate compilationInfo(string key, int value) {
13+
exists(Compilation c, string infoKey |
14+
key = infoKey + ": " + c.getInfo(infoKey) and
15+
value = 1
16+
)
17+
}
18+
1219
predicate fileCount(string key, int value) {
1320
key = "Number of files" and
1421
value = strictcount(File f)
@@ -55,6 +62,7 @@ predicate extractorDiagnostics(string key, int value) {
5562

5663
from string key, int value
5764
where
65+
compilationInfo(key, value) or
5866
fileCount(key, value) or
5967
fileCountByExtension(key, value) or
6068
totalNumberOfLines(key, value) or

0 commit comments

Comments
 (0)