feat(ci): enforce gofmt and wrap long composite literals in yawn/ (0.3.0-dev.54) #67

Merged
john merged 1 commit from feat/yawn-go-format into main 2026-11-23 22:34:33 +00:00
Owner

Enforces gofmt and readable multi-line wrapping on yawn/*.go across every repo that synthesizes CI with ci.Synthesize.

Changes

  • ci/format.go + ci/generate.go:
    • During ci.Synthesize(root, check, ...), checks all yawn/*.go files with go/format.Source (gofmt) and expands any single-line multi-element ast.CompositeLit exceeding 120 columns into clean multi-line fields.
    • go run ./yawn formats yawn/*.go in place; go run ./yawn -check fails in CI when any yawn/*.go file needs formatting or wrapping.
  • ci/ci_test.go: adds TestYawnGoFormattingEnforced.
  • VERSION, CHANGELOG.md: release 0.3.0-dev.54.

Verification

  • .forgejo/scripts/check.sh: gofmt, go mod verify, go vet, all tests, and govulncheck passed.
Enforces `gofmt` and readable multi-line wrapping on `yawn/*.go` across every repo that synthesizes CI with `ci.Synthesize`. ## Changes - `ci/format.go` + `ci/generate.go`: - During `ci.Synthesize(root, check, ...)`, checks all `yawn/*.go` files with `go/format.Source` (`gofmt`) and expands any single-line multi-element `ast.CompositeLit` exceeding 120 columns into clean multi-line fields. - `go run ./yawn` formats `yawn/*.go` in place; `go run ./yawn -check` fails in CI when any `yawn/*.go` file needs formatting or wrapping. - `ci/ci_test.go`: adds `TestYawnGoFormattingEnforced`. - `VERSION`, `CHANGELOG.md`: release `0.3.0-dev.54`. ## Verification - `.forgejo/scripts/check.sh`: `gofmt`, `go mod verify`, `go vet`, all tests, and `govulncheck` passed.
feat(ci): enforce gofmt and wrap long composite literals in yawn/
All checks were successful
CI / release-check-1 (pull_request) Successful in 10s
CI / release-check (pull_request) Successful in 0s
CI / checks (pull_request) Successful in 2m4s
6fc8a4cb08
john merged commit 177fe9f938 into main 2026-11-23 22:34:33 +00:00
john deleted branch feat/yawn-go-format 2026-11-23 22:34:33 +00:00
Sign in to join this conversation.
No reviewers
No labels
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
john/cdk!67
No description provided.