feat(ci): enforce gofmt and wrapped literals on yawn/*.go (0.3.0-dev.54) #66
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/yawn-gofmt-check"
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?
Enforces
gofmtformatting and rejects dense (>140 char) single-line multi-element composite literals acrossyawn/*.goinsideci.Synthesize()(go run ./yawn -checkandgo run ./yawn), so every repo usingyawn/gets formatting enforcement automatically without extra per-repo CI scripts.ci/generate.go: addscheckYawnSource(root, check)(go/format.Source+ AST check for single-line multi-element*ast.CompositeLit>140 chars). Non-check mode formatsyawn/*.goin place;-checkfails clearly.ci/ci_test.go: tests unformatted rejection, auto-formatting on write, dense single-line struct literal rejection, and clean multi-line passing.0.3.0-dev.54.Verified locally with
.forgejo/scripts/check.sh(gofmt,go vet,go test,govulncheck).Superseded by #67 (
177fe9f9) which shippedci/format.goand releasedv0.3.0-dev.54.Pull request closed