Skip to content

fix(lint): resolve all golangci-lint issues#138

Merged
spachava753 merged 1 commit intomainfrom
fix/lint-issues
Jan 16, 2026
Merged

fix(lint): resolve all golangci-lint issues#138
spachava753 merged 1 commit intomainfrom
fix/lint-issues

Conversation

@spachava753
Copy link
Copy Markdown
Owner

Fixes 34 lint issues across 31 files, covering bodyclose, contextcheck, forcetypeassert, gofmt, nilerr, noctx, staticcheck, unused, and wastedcheck categories.

Key changes include converting all exec.Command, http.NewRequest, and db.Exec calls to their context-aware variants with proper context propagation. Type assertions now use comma-ok pattern for safety instead of panic. Response bodies are properly closed in all test HTTP round trips.

Preserves original behavior where save operations should complete even during parent context cancellation using context.Background() for the save context, with nolint comments documenting the intentional design. User/tool errors in codemode continue to return error messages in results rather than Go errors to allow agent recovery.

Removed unused fields from test structs and fixed variable initialization patterns. Tests for modified packages all pass.

Fixes 34 lint issues across 31 files, covering bodyclose, contextcheck, forcetypeassert, gofmt, nilerr, noctx, staticcheck, unused, and wastedcheck categories.

Key changes include converting all exec.Command, http.NewRequest, and db.Exec calls to their context-aware variants with proper context propagation. Type assertions now use comma-ok pattern for safety instead of panic. Response bodies are properly closed in all test HTTP round trips.

Preserves original behavior where save operations should complete even during parent context cancellation using context.Background() for the save context, with nolint comments documenting the intentional design. User/tool errors in codemode continue to return error messages in results rather than Go errors to allow agent recovery.

Removed unused fields from test structs and fixed variable initialization patterns. Tests for modified packages all pass.
@spachava753 spachava753 merged commit e88e4a1 into main Jan 16, 2026
@spachava753 spachava753 deleted the fix/lint-issues branch April 10, 2026 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant