fix(lint): add nolint comments for gosec G201/G104 in dolt storage
The SQL formatting warnings (G201) are safe because: - Placeholders only contain "?" markers for parameterized queries - WHERE/SET clauses use validated column names with ? placeholders - Refs are validated by validateRef() before use in AS OF queries - LIMIT values are safe integers from filter.Limit Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
committed by
Steve Yegge
parent
fe67e9e232
commit
28a7f10955
@@ -201,6 +201,7 @@ func (s *DoltStore) GetDependencyCounts(ctx context.Context, issueIDs []string)
|
||||
inClause := strings.Join(placeholders, ",")
|
||||
|
||||
// Query for dependencies (blockers)
|
||||
// nolint:gosec // G201: inClause contains only ? placeholders, actual values passed via args
|
||||
depQuery := fmt.Sprintf(`
|
||||
SELECT issue_id, COUNT(*) as cnt
|
||||
FROM dependencies
|
||||
@@ -231,6 +232,7 @@ func (s *DoltStore) GetDependencyCounts(ctx context.Context, issueIDs []string)
|
||||
}
|
||||
|
||||
// Query for dependents (blocking)
|
||||
// nolint:gosec // G201: inClause contains only ? placeholders, actual values passed via args
|
||||
blockingQuery := fmt.Sprintf(`
|
||||
SELECT depends_on_id, COUNT(*) as cnt
|
||||
FROM dependencies
|
||||
|
||||
Reference in New Issue
Block a user