Make fmt-check check what fmt writes (closes #22) #24

Merged
clawbot merged 1 commits from fmt-check-matches-fmt into next 2026-10-06 10:43:52 +02:00
1 Commits
Author SHA1 Message Date
clawbot 80304b6f41 Make fmt-check check what fmt writes (closes #22)
check / check (push) Successful in 1m52s
script/fmt writes with gofmt -s and goimports, but script/fmt-check
only ran gofmt -l. A file that gofmt -s would simplify, or whose
imports goimports would regroup, passed make check and then changed
on the next make fmt.

script/fmt-check now runs gofmt -s -l and goimports -l, prints each
file either would change once, and fails. It puts Go's bin directory
on PATH first, as script/fmt does, so it runs the goimports that
script/bootstrap installs. The README line on what make check runs
now names both formatters.

Model: opus-5-5
2026-10-06 08:09:45 +00:00