Skip to content

chore: modernize golangci-lint config#55

Merged
akshaykalia merged 1 commit into
mainfrom
chore/modernize-golangci-lint
Jun 8, 2026
Merged

chore: modernize golangci-lint config#55
akshaykalia merged 1 commit into
mainfrom
chore/modernize-golangci-lint

Conversation

@akshaykalia

@akshaykalia akshaykalia commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Replaces dead .golangci.yml.old with an active .golangci.yml in v2 format
  • Enables 5 additional linters that produce zero findings on the current codebase: bodyclose, misspell, nilerr, unconvert, wastedassign
  • Updates CI from golangci-lint v1.56 (EOL) + action v3 to golangci-lint v2.1 + action v6

What these linters catch in future code

Linter Catches
bodyclose HTTP response bodies not closed (connection leaks)
nilerr Returning nil when err is non-nil (swallowed errors)
misspell Typos in code and comments
unconvert Unnecessary type conversions
wastedassign Assignments to variables never read

Test plan

  • golangci-lint run produces 0 findings from new linters
  • go build ./... passes
  • go test ./... passes
  • CI lint job passes with new action version

@akshaykalia akshaykalia force-pushed the chore/modernize-golangci-lint branch from 045eadf to fd440a4 Compare June 8, 2026 01:51
- Replace dead .golangci.yml.old with active .golangci.yml (v2 format)
- Enable additional linters that pass cleanly: bodyclose, misspell,
  nilerr, unconvert, wastedassign
- Update CI from golangci-lint v1.56 (EOL) to v2.1
- Update action from golangci-lint-action@v3 to @v6

All new linters produce zero findings on the current codebase.
They catch HTTP body leaks (bodyclose), swallowed errors (nilerr),
typos (misspell), and dead assignments (wastedassign) in future code.
@akshaykalia akshaykalia force-pushed the chore/modernize-golangci-lint branch from fd440a4 to fa2ae3a Compare June 8, 2026 02:02
@akshaykalia akshaykalia merged commit 0965d59 into main Jun 8, 2026
2 checks passed
akshaykalia added a commit that referenced this pull request Jun 8, 2026
Resolve conflicts between UI enhancements and main branch updates:
- Take golangci-lint v2.1 from modernization PR (#55)
- Keep review fix: remove auth test-mode bypass
- Keep review fix: improved test error handling
- Take main's refactored update command
- Reconcile dependency versions via go mod tidy
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