chore: adopt gofumpt and enforce it in the gate #585
Labels
No labels
breaking
bug
documentation
enhancement
epic
good first issue
help wanted
refactoring
resolution/duplicate
resolution/invalid
resolution/wontfix
security
severity/critical
severity/high
severity/low
severity/medium
status/abandoned
status/blocked
status/needs-decision
status/needs-info
status/needs-verification
testing
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
sixfold-space/madtea#585
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
gofumpt -l .lists 65 files. The tree is already gofmt-clean; gofumpt isstricter. gofumpt output stays gofmt-clean, so the existing gofmt step keeps
passing.
What
Land as two reviewable commits:
gofumpt -w .: mechanical, with no manual edits. Verify by re-running thecommand, not by reading the diff.
scripts/gate.sh, using the same capture-and-fail pattern. Pin the gofumptversion in
scripts/setup-dev.shand.forgejo/workflows/ci.yml, which keeptheir 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 --fastis green.go test ./...is green.