This repository contains golden outputs used by tests under testdata/**/output_next.go. These files are authoritative fixtures and must not be altered by automation.
- Never modify
testdata/**/output_next.goor any other golden results when making changes. - If a change appears to require updating these golden files, stop immediately and ask a human maintainer for direction.
- Do not regenerate or rewrite the goldens as part of formatter changes or test fixes.
When in doubt about expected behavior vs. golden outputs, halt work and escalate to a human before proceeding.
- Purpose:
llformatis a Go formatter that reflows comments and reformats targeted log/printf-style calls without touching other code. - Build/test commands:
make build(ormake all) buildsbin/llformat;make test/make unitrungo test -v ./...;make cleanremovesbin/. - CLI usage:
./bin/llformat <file.go>(or-wto write in place); key flags include--col,--tab, and--wrap-inline-comments. - Architecture highlights: CLI in
cmd/llformat/main.go; comment formatting informatter/comment_formatter.go; call formatting informatter/left_flow_call_formatter.go; tests compareinput.go→output_next.gogoldens undertestdata/.
- Before committing changes, run
make self-checkandmake lint. - Prefer
make fmt/make fmt-checkfor formatting; the repo formatter tooling intentionally excludestestdata/**so golden fixtures stay untouched. - Linting must also skip
testdata/**(see.golangci.ymlexclusions). - Commit messages must follow the repository's established format; confirm it with a maintainer if uncertain.
- CI runs the same checks via
.github/workflows/ci.yml.