Skip to content

Commit b557242

Browse files
committed
Kotlin: Autoformat
1 parent 8b80945 commit b557242

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

java/ql/lib/upgrades/37f33da42d2cffa6ad8b26feaa6beed1c5ce3149/diagnostics.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ from
1010
Diagnostic d, int severity, string error_tag, string error_message, string full_error_message,
1111
Location l
1212
where diagnostics(d, severity, error_tag, error_message, full_error_message, l)
13-
select d, /* generated_by */ "CodeQL Java extractor", severity, error_tag, error_message, full_error_message, l
13+
select d, /* generated_by */ "CodeQL Java extractor", severity, error_tag, error_message,
14+
full_error_message, l

java/ql/src/Diagnostics/DiagnosticsReporting.qll

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ private predicate unknownErrors(Diagnostic d, string msg, int sev) {
4848
not knownErrors(d, _, _) and
4949
exists(File f, int diagSev |
5050
d.getSeverity() = diagSev and
51-
d.getLocation().getFile() = f and diagSev > 3
51+
d.getLocation().getFile() = f and
52+
diagSev > 3
5253
|
5354
exists(f.getRelativePath()) and
5455
msg = "Unknown errors in file: " + f.getAbsolutePath() + " (" + diagSev + ")" and
@@ -83,9 +84,7 @@ predicate reportableWarnings(Diagnostic d, string msg, int sev) { knownWarnings(
8384
* no relevant extraction diagnostics associated with it.
8485
*/
8586
predicate successfullyExtracted(CompilationUnit f) {
86-
not exists(Diagnostic d |
87-
reportableDiagnostics(d, _, _) and d.getLocation().getFile() = f
88-
) and
87+
not exists(Diagnostic d | reportableDiagnostics(d, _, _) and d.getLocation().getFile() = f) and
8988
exists(f.getRelativePath()) and
9089
f.fromSource()
9190
}

0 commit comments

Comments
 (0)