Skip to content

Add golangci-lint to CI - #9

Merged
ChristopherLiew merged 1 commit into
mainfrom
ci/golangci-lint
Nov 16, 2026
Merged

ChristopherLiew merged 1 commit into
mainfrom
ci/golangci-lint

Conversation

@ChristopherLiew

Copy link
Copy Markdown
Owner

golint is archived; its rules live on in revive. Add a golangci job to ci.yml (golangci-lint v2.15.0 via golangci-lint-action@v9) with a minimal .golangci.yml: the standard linters plus revive, and the std-error-handling exclusion preset for unchecked Close/os.Remove/fmt.Fprint.

Fix what it found on main:

  • doc comments on the Codex adapter's exported Agent, Event, Output, Parse and Render
  • TestDoAgainstRealDaemon now reports the error daemon.Serve returns
  • two staticcheck quickfixes in core state tests

golangci-lint stays out of make check (it is optional locally, like shellcheck); CONTRIBUTING.md and CLAUDE.md document the new job.

golint is archived; its rules live on in revive. Add a golangci job to
ci.yml (golangci-lint v2.15.0 via golangci-lint-action@v9) with a minimal
.golangci.yml: the standard linters plus revive, and the std-error-handling
exclusion preset for unchecked Close/os.Remove/fmt.Fprint.

Fix what it found on main:
- doc comments on the Codex adapter's exported Agent, Event, Output,
  Parse and Render
- TestDoAgainstRealDaemon now reports the error daemon.Serve returns
- two staticcheck quickfixes in core state tests

golangci-lint stays out of make check (it is optional locally, like
shellcheck); CONTRIBUTING.md and CLAUDE.md document the new job.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ChristopherLiew
ChristopherLiew merged commit 9fd9c55 into main Nov 16, 2026
5 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.

1 participant