8000 Go: report any extracted file as successfully extracted by owen-mc · Pull Request #15211 · github/codeql · GitHub
[go: up one dir, main page]

Skip to content

Go: report any extracted file as successfully extracted #15211

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

10000
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
category: minorAnalysis
---
* The diagnostic query `go/diagnostics/successfully-extracted-files`, and therefore the Code Scanning UI measure of scanned Go files, now considers any Go file seen during extraction, even one with some errors, to be extracted / scanned.
8 changes: 3 additions & 5 deletions go/ql/src/Diagnostics/SuccessfullyExtractedFiles.ql
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
/**
* @id go/diagnostics/successfully-extracted-files
* @name Successfully analyzed files
* @description List all files that were successfully extracted.
* @name Extracted files
* @description List all files that were extracted.
* @kind diagnostic
* @tags successfully-extracted-files
*/

import go

from File f
where
not exists(Error e | e.getFile() = f) and
exists(f.getRelativePath())
where exists(f.getRelativePath())
select f, ""
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
| ../../go.mod:0:0:0:0 | ../../go.mod | |
| badimport.go:0:0:0:0 | badimport.go | |
| type.go:0:0:0:0 | type.go | |
| util.go:0:0:0:0 | util.go | |
0