Files
codeql/java/ql/consistency-queries/compilations.ql
Ian Lynagh 89eae2407b Kotlin: Improve error handling
Each compilation, and each file within a cmopilation, now gets a
"result" indicating whether it had recoverable or non-recoverable
errors.
2022-05-10 19:51:15 +01:00

19 lines
444 B
Plaintext

import java
predicate goodCompilation(Compilation c) {
forex(int i |
exists(c.getFileCompiled(i)) |
(exists(c.getFileCompiled(i - 1)) or i = 0)
and c.fileCompiledSuccessful(i)) and
forex(int i |
exists(c.getArgument(i)) |
exists(c.getArgument(i - 1)) or i = 0) and
c.extractionStarted() and
c.extractionSuccessful()
}
from Compilation c
where c.isKotlin()
and not goodCompilation(c)
select c