GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Kotlin: Autoformat · github/codeql@b557242

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • java/ql
    • lib/upgrades/37f33da42d2cffa6ad8b26feaa6beed1c5ce3149
      • diagnostics.ql
    • src/Diagnostics
      • DiagnosticsReporting.qll
Expand file treeCollapse file tree
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: java/ql/lib/upgrades/37f33da42d2cffa6ad8b26feaa6beed1c5ce3149/diagnostics.ql
+2-1Lines 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
Collapse file

‎java/ql/src/Diagnostics/DiagnosticsReporting.qll‎

Copy file name to clipboardExpand all lines: java/ql/src/Diagnostics/DiagnosticsReporting.qll
+3-4Lines 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 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.