fix(lint): address G304 and unparam warnings
- Add #nosec G304 comment to parseJSONLFile in rename_prefix.go - Mark unused noGitHistory param in importFromJSONLInline (mirrors import.go pattern) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
committed by
Steve Yegge
parent
520518c68b
commit
6ce36ab1f3
@@ -572,6 +572,7 @@ func generateRepairHashID(ctx context.Context, conn *sql.Conn, prefix string, is
|
||||
|
||||
// parseJSONLFile reads and parses a JSONL file into a slice of issues
|
||||
func parseJSONLFile(jsonlPath string) ([]*types.Issue, error) {
|
||||
// #nosec G304 - jsonlPath is from findJSONLPath() which uses trusted paths
|
||||
f, err := os.Open(jsonlPath)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to open JSONL file: %w", err)
|
||||
|
||||
Reference in New Issue
Block a user