Kotlin: Add an integration test for Kotlin 2

This commit is contained in:
Ian Lynagh 2023-09-04 11:28:31 +01:00
Родитель deaf912cb8
Коммит bbf441f87a
5 изменённых файлов: 26 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,3 @@
| Number of files with extension jar | 1 |
| Number of files with extension kt | 1 |
| Uses Kotlin 2: true | 1 |

Просмотреть файл

@ -0,0 +1,17 @@
extensions:
- addsTo:
pack: codeql/java-queries
extensible: extractorInformationSkipKey
data:
# These will have unstable values, as they are dependent on the
# JDK that the test is run with, so filter them out:
- ["Number of files"]
- ["Number of files with extension class"]
# These depend on the Kotlin version you have installed
- ["Kotlin Compiler Version: %"]
- ["Kotlin Extractor Name: %"]
# Currently we get some diagnostics as Kotlin 2 support isn't complete.
# Ignore these, as the number probably isn't stable.
- ["Number of diagnostics from CodeQL Kotlin extractor with severity %"]
- ["Total number of diagnostics from CodeQL Kotlin extractor"]

Просмотреть файл

@ -0,0 +1 @@
Telemetry/ExtractorInformation.ql

Просмотреть файл

@ -0,0 +1,2 @@
class SomeClass {
}

Просмотреть файл

@ -0,0 +1,3 @@
from create_database_utils import *
run_codeql_database_create(["kotlinc -language-version 2.0 SomeClass.kt"], lang="java")