fix(lint): add batch_ops.go to G201 exclusion

The batch_ops.go file uses fmt.Sprintf to build SQL queries with IN
clause expansion, same pattern as dependencies.go. The placeholders
are parameterized (?) making this safe, but gosec G201 flags it.

Add batch_ops.go to the existing G201 exclusion path regex.

This fixes CI lint failures affecting multiple open PRs.

Co-authored-by: Charles P. Cross <cpdata@users.noreply.github.com>
This commit is contained in:
Charles P. Cross
2025-12-19 00:28:20 -05:00
committed by GitHub
parent 77d8a995e8
commit 8fa1eda207

View File

@@ -79,7 +79,7 @@ linters:
- gosec
text: "G115"
# G201: SQL with fmt.Sprintf using placeholders (IN clause expansion)
- path: 'internal/storage/sqlite/dependencies\.go'
- path: 'internal/storage/sqlite/(dependencies|batch_ops)\.go'
linters:
- gosec
text: "G201"