Skip to content

Commit bbf441f

Browse files
committed
Kotlin: Add an integration test for Kotlin 2
1 parent deaf912 commit bbf441f

File tree

5 files changed

+26
-0
lines changed

5 files changed

+26
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
| Number of files with extension jar | 1 |
2+
| Number of files with extension kt | 1 |
3+
| Uses Kotlin 2: true | 1 |
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
extensions:
2+
- addsTo:
3+
pack: codeql/java-queries
4+
extensible: extractorInformationSkipKey
5+
data:
6+
# These will have unstable values, as they are dependent on the
7+
# JDK that the test is run with, so filter them out:
8+
- ["Number of files"]
9+
- ["Number of files with extension class"]
10+
# These depend on the Kotlin version you have installed
11+
- ["Kotlin Compiler Version: %"]
12+
- ["Kotlin Extractor Name: %"]
13+
# Currently we get some diagnostics as Kotlin 2 support isn't complete.
14+
# Ignore these, as the number probably isn't stable.
15+
- ["Number of diagnostics from CodeQL Kotlin extractor with severity %"]
16+
- ["Total number of diagnostics from CodeQL Kotlin extractor"]
17+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Telemetry/ExtractorInformation.ql
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
class SomeClass {
2+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from create_database_utils import *
2+
3+
run_codeql_database_create(["kotlinc -language-version 2.0 SomeClass.kt"], lang="java")

0 commit comments

Comments
 (0)