chore: adopt gofumpt and enforce it in the gate #585

Open
opened 2026-09-22 17:10:56 +00:00 by hexajon · 0 comments
Owner

Context

gofumpt -l . lists 65 files. The tree is already gofmt-clean; gofumpt is
stricter. gofumpt output stays gofmt-clean, so the existing gofmt step keeps
passing.

What

Land as two reviewable commits:

  1. gofumpt -w .: mechanical, with no manual edits. Verify by re-running the
    command, not by reading the diff.
  2. Enforcement: add a gofumpt step beside gofmt in the cheap section of
    scripts/gate.sh, using the same capture-and-fail pattern. Pin the gofumpt
    version in scripts/setup-dev.sh and .forgejo/workflows/ci.yml, which keep
    their pins in sync per their own headers. Add the command line to the
    CLAUDE.md command list.

Acceptance

  • gofumpt -l . prints nothing.
  • ./scripts/gate.sh --fast is green.
  • go test ./... is green.
## Context `gofumpt -l .` lists 65 files. The tree is already gofmt-clean; gofumpt is stricter. gofumpt output stays gofmt-clean, so the existing gofmt step keeps passing. ## What Land as two reviewable commits: 1. `gofumpt -w .`: mechanical, with no manual edits. Verify by re-running the command, not by reading the diff. 2. Enforcement: add a gofumpt step beside gofmt in the cheap section of `scripts/gate.sh`, using the same capture-and-fail pattern. Pin the gofumpt version in `scripts/setup-dev.sh` and `.forgejo/workflows/ci.yml`, which keep their pins in sync per their own headers. Add the command line to the CLAUDE.md command list. ## Acceptance - `gofumpt -l .` prints nothing. - `./scripts/gate.sh --fast` is green. - `go test ./...` is green.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
sixfold-space/madtea#585
No description provided.