Kotlin: Autoformat

This commit is contained in:
Ian Lynagh
2022-05-09 22:35:05 +01:00
parent 8b809459d9
commit b5572422df
2 changed files with 5 additions and 5 deletions

View File

@@ -10,4 +10,5 @@ from
Diagnostic d, int severity, string error_tag, string error_message, string full_error_message,
Location l
where diagnostics(d, severity, error_tag, error_message, full_error_message, l)
select d, /* generated_by */ "CodeQL Java extractor", severity, error_tag, error_message, full_error_message, l
select d, /* generated_by */ "CodeQL Java extractor", severity, error_tag, error_message,
full_error_message, l

View File

@@ -48,7 +48,8 @@ private predicate unknownErrors(Diagnostic d, string msg, int sev) {
not knownErrors(d, _, _) and
exists(File f, int diagSev |
d.getSeverity() = diagSev and
d.getLocation().getFile() = f and diagSev > 3
d.getLocation().getFile() = f and
diagSev > 3
|
exists(f.getRelativePath()) and
msg = "Unknown errors in file: " + f.getAbsolutePath() + " (" + diagSev + ")" and
@@ -83,9 +84,7 @@ predicate reportableWarnings(Diagnostic d, string msg, int sev) { knownWarnings(
* no relevant extraction diagnostics associated with it.
*/
predicate successfullyExtracted(CompilationUnit f) {
not exists(Diagnostic d |
reportableDiagnostics(d, _, _) and d.getLocation().getFile() = f
) and
not exists(Diagnostic d | reportableDiagnostics(d, _, _) and d.getLocation().getFile() = f) and
exists(f.getRelativePath()) and
f.fromSource()
}