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)
|
||||
|
||||
@@ -65,7 +65,7 @@ func importFromJSONL(ctx context.Context, jsonlPath string, renameOnImport bool,
|
||||
// This avoids path resolution issues when running from directories with .beads/redirect.
|
||||
// The parent process's store and dbPath are used, ensuring consistent path resolution.
|
||||
// (bd-ysal fix)
|
||||
func importFromJSONLInline(ctx context.Context, jsonlPath string, renameOnImport bool, noGitHistory bool) error {
|
||||
func importFromJSONLInline(ctx context.Context, jsonlPath string, renameOnImport bool, _ /* noGitHistory */ bool) error {
|
||||
// Verify we have an active store
|
||||
if store == nil {
|
||||
return fmt.Errorf("no database store available for inline import")
|
||||
|
||||
Reference in New Issue
Block a user