mirror of
https://github.com/github/codeql.git
synced 2026-05-14 11:19:27 +02:00
Just: port kotlin tests to new language test definition
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
15
java/ql/test-kotlin1/justfile
Normal file
15
java/ql/test-kotlin1/justfile
Normal file
@@ -0,0 +1,15 @@
|
||||
import "../justfile"
|
||||
|
||||
base_flags := """\
|
||||
CODEQL_EXTRACTOR_KOTLIN_DIAGNOSTIC_LIMIT= \
|
||||
"""
|
||||
|
||||
all_checks := default_db_checks + """\
|
||||
--check-undefined-labels \
|
||||
--check-repeated-labels \
|
||||
--check-redefined-labels \
|
||||
--check-use-before-definition \
|
||||
--consistency-queries=""" + consistency_queries
|
||||
|
||||
[no-cd]
|
||||
test *ARGS=".": (_codeql_test "java" base_flags all_checks ARGS)
|
||||
16
java/ql/test-kotlin2/justfile
Normal file
16
java/ql/test-kotlin2/justfile
Normal file
@@ -0,0 +1,16 @@
|
||||
import "../justfile"
|
||||
|
||||
base_flags := """\
|
||||
CODEQL_EXTRACTOR_KOTLIN_DIAGNOSTIC_LIMIT= \
|
||||
CODEQL_KOTLIN_LEGACY_TEST_EXTRACTION_KOTLIN2=true \
|
||||
"""
|
||||
|
||||
all_checks := default_db_checks + """\
|
||||
--check-undefined-labels \
|
||||
--check-repeated-labels \
|
||||
--check-redefined-labels \
|
||||
--check-use-before-definition \
|
||||
--consistency-queries=""" + consistency_queries
|
||||
|
||||
[no-cd]
|
||||
test *ARGS=".": (_codeql_test "java" base_flags all_checks ARGS)
|
||||
Reference in New Issue
Block a user