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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user