You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enforce golangci-lint, fix lint warnings, harden CI (#281)
## Summary
- Add `.golangci.yml` with errcheck, govet, ineffassign, staticcheck,
unused linters
- Make CI lint step blocking and pin golangci-lint to v1.64.8
- Pin all GitHub Actions to immutable commit SHAs; add Dependabot for
weekly updates
- Add `make lint` target and `make install-hooks` (copies pre-commit
hook into `.git/hooks/`, works in linked worktrees)
- Fix all existing lint warnings: unchecked errors on writes, JSON
encoding, rollbacks, `os.Remove`/`os.Rename`, `Chdir`
- Replace `fmt.Sscanf` with `strconv` for numeric parsing; handle
`+meta` build metadata in semver comparison
- Stop sync loop when progress stream write fails (disconnected client)
- Remove unused `assertArgsOrder` test helper
## Test plan
- [x] `go test ./...` passes
- [x] `make lint` passes with no warnings
- [x] CI lint job passes (now blocking)
- [x] `make install-hooks` works in normal repos and linked worktrees
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments