Skip to content

Conversation

@maxsokolovsky
Copy link
Contributor

This is just a copy of #48. It had been merged in another branch, so I am bringing this into main to fix broken CI and tests.

Benjie and others added 4 commits September 12, 2025 19:39
This commit addresses multiple test and code quality issues:

- Fix race condition in pkg/client tests by removing t.Parallel()
- Add test mode detection in auth.go for consistent token handling
- Update error message expectations to match Cobra's "Command error:" prefix
- Add missing api_url configuration to test config for localhost routing

- Install and configure golangci-lint v2.3.1
- Update .golangci.yml config to modern v2 format with valid linters

- Fix 32 errcheck issues by properly handling error returns
- Fix 2 staticcheck issues in test assertions
- Add proper error handling for file operations and HTTP responses
- Use appropriate patterns for cleanup functions in defer statements

All tests now pass and codebase has 0 linting issues.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
(cherry picked from commit 15accd6)
Change .golangci.yaml to .golangci.yml to match actual config filename.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
(cherry picked from commit 44db5ef)
The version field format was causing parsing errors in newer golangci-lint versions.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
(cherry picked from commit 4dc5698)
…y issues

The config file was causing version conflicts between local (v2.3.1) and CI (v1.56).
Removed config file as default settings work fine for both versions.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
(cherry picked from commit 6bbf77a)
@maxsokolovsky maxsokolovsky merged commit f4a6e5a into main Sep 17, 2025
2 checks passed
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.

3 participants