Skip to content

ci: enable golangci-lint in CI and clear accumulated findings#11

Merged
rthill91 merged 4 commits into
mainfrom
chore/enable-lint-in-ci
May 14, 2026
Merged

ci: enable golangci-lint in CI and clear accumulated findings#11
rthill91 merged 4 commits into
mainfrom
chore/enable-lint-in-ci

Conversation

@gjolly

@gjolly gjolly commented May 14, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Fix 14 lint findings (errcheck, gocritic, gosec, staticcheck) that had accumulated because CI never ran the linter.
  • Add a lint job to .github/workflows/ci.yml, pinned to golangci-lint v2.12.2 (matches the version the Makefile expects locally).
  • Add a make check target (lint test) and document it in CLAUDE.md as the contract for "ready to push," so the gap that let these findings slip in doesn't reopen.

Test plan

  • make lint → 0 issues
  • make test → all packages pass with -race
  • make check → both run from a single target
  • CI lint job runs green on this PR

🤖 Generated with Claude Code

gjolly and others added 4 commits May 14, 2026 10:17
Address 14 issues that had accumulated because CI never ran the linter.
Wrap ignored Close() returns, fix argOrder on the process-state check,
ensure the fleet-stream cancel always runs, and lowercase three
fmt.Errorf strings.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Adds a lint job pinned to golangci-lint v2.12.2 (matching the version
the Makefile already expects locally). Without it, the lint config in
.golangci.yml was unenforced and findings accumulated silently.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Bundles lint+test into a single target that mirrors what CI now enforces,
and documents it in CLAUDE.md so future agents (and humans) have a clear
contract for "ready to push" rather than relying on memory to run both.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
v6 of the action rejects v2.x versions of golangci-lint outright.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@rthill91 rthill91 merged commit 85426a4 into main May 14, 2026
3 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.

2 participants