Merge pull request #15211 from owen-mc/go/redefine-successfully-extracted-files

Go: report any extracted file as successfully extracted
This commit is contained in:
Owen Mansel-Chan
2024-01-03 16:07:09 +00:00
committed by GitHub
3 changed files with 9 additions and 5 deletions

View File

@@ -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.

View File

@@ -1,7 +1,7 @@
/**
* @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
*/
@@ -9,7 +9,5 @@
import go
from File f
where
not exists(Error e | e.getFile() = f) and
exists(f.getRelativePath())
where exists(f.getRelativePath())
select f, ""

View File

@@ -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 | |