GeezerVison is showing github.com — Kotlin: Autoformat · github/codeql@b557242
File treeExpand file treeCollapse file tree Open diff view settings lib/upgrades/37f33da42d2cffa6ad8b26feaa6beed1c5ce3149
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: java/ql/lib/upgrades/37f33da42d2cffa6ad8b26feaa6beed1c5ce3149/diagnostics.ql +2-1Lines changed: 2 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 10 | 10 | Diagnostic d, int severity, string error_tag, string error_message, string full_error_message, | 11 | 11 | Location l | 12 | 12 | 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 |
Collapse file Copy file name to clipboardExpand all lines: java/ql/src/Diagnostics/DiagnosticsReporting.qll +3-4Lines changed: 3 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -48,7 +48,8 @@ private predicate unknownErrors(Diagnostic d, string msg, int sev) { | 48 | 48 | not knownErrors(d, _, _) and | 49 | 49 | exists(File f, int diagSev | | 50 | 50 | d.getSeverity() = diagSev and | 51 | | - d.getLocation().getFile() = f and diagSev > 3 | | 51 | + d.getLocation().getFile() = f and | | 52 | + diagSev > 3 | 52 | 53 | | | 53 | 54 | exists(f.getRelativePath()) and | 54 | 55 | msg = "Unknown errors in file: " + f.getAbsolutePath() + " (" + diagSev + ")" and | @@ -83,9 +84,7 @@ predicate reportableWarnings(Diagnostic d, string msg, int sev) { knownWarnings( | 83 | 84 | * no relevant extraction diagnostics associated with it. | 84 | 85 | */ | 85 | 86 | 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 | 89 | 88 | exists(f.getRelativePath()) and | 90 | 89 | f.fromSource() | 91 | 90 | } |
|