Fix the G117 rule to take the JSON serialization into account (#1528)

* Fix g117 to take into account the json serialization

Signed-off-by: Cosmin Cojocar <cosmin@cojocar.ch>

* Ignore lint warning

Signed-off-by: Cosmin Cojocar <cosmin@cojocar.ch>

---------

Signed-off-by: Cosmin Cojocar <cosmin@cojocar.ch>
This commit is contained in:
Cosmin Cojocar
2026-02-18 21:50:17 +01:00
committed by GitHub
parent 4f84627380
commit b940702d5e
4 changed files with 530 additions and 84 deletions
+1 -1
View File
@@ -74,7 +74,7 @@ func (u *utilities) run(args ...string) {
}
func shouldSkip(path string) bool {
st, e := os.Stat(path)
st, e := os.Stat(path) // #nosec G703 -- gosecutil intentionally inspects user-supplied local file paths
if e != nil {
//#nosec
fmt.Fprintf(os.Stderr, "Skipping: %s - %s\n", path, e)