mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
Kotlin: adjust expected test results after fixing compiler argument interception
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
| 0 | -Xallow-no-source-files |
|
||||
| 1 | -classpath |
|
||||
| 2 | <PATH> |
|
||||
| 3 | -d |
|
||||
| 4 | app/build/classes/kotlin/main |
|
||||
| 5 | -jdk-home |
|
||||
| 6 | <PATH> |
|
||||
| 7 | -module-name |
|
||||
| 8 | app |
|
||||
| 9 | -no-reflect |
|
||||
| 10 | -no-stdlib |
|
||||
| 11 | <PLUGINS> |
|
||||
| 12 | app/src/main/kotlin/testProject/App.kt |
|
||||
| 13 | -jvm-target |
|
||||
| 14 | 1.8 |
|
||||
|
||||
@@ -1,4 +1,15 @@
|
||||
import java
|
||||
|
||||
private string getArgument(Compilation c, int i) {
|
||||
exists(string arg | arg = c.getArgument(i) |
|
||||
if exists(arg.indexOf("-Xplugin="))
|
||||
then result = "<PLUGINS>"
|
||||
else
|
||||
if exists(string arg0 | arg0 = c.getArgument(i - 1) | arg0 = ["-classpath", "-jdk-home"])
|
||||
then result = "<PATH>"
|
||||
else result = arg
|
||||
)
|
||||
}
|
||||
|
||||
from Compilation c, int i
|
||||
select i, c.getArgument(i)
|
||||
select i, getArgument(c, i)
|
||||
|
||||
Reference in New Issue
Block a user