Repository navigation
Apply cargo fmt — main's lint job is red - #14
Merged
Merged
Conversation
`main` is red: the simulation core's lint job fails on rustfmt, at crates/sim/src/lib.rs:1625 — an if/else introduced by ADR 0011's deploy test. Formatting only; the 34 tests and clippy are unaffected. Third time this has happened (see the fmt commits around #5). The pattern is always the same: rustfmt is enforced in CI and run nowhere else, so it is caught after landing rather than before. Worth a pre-commit hook or a `make fmt` that people actually run.
4 of 5 tasks
teceer
added a commit
that referenced
this pull request
Aug 7, 2026
#15) Formatting has landed on main and turned the lint job red three times now (twice around #5, again in #14). The pattern never changes: rustfmt is enforced in CI and run nowhere else, so it is found after landing, by whoever pushes next. `make hooks` points core.hooksPath at .githooks/, so the hooks are versioned and change with the repo rather than being copied into .git once and forgotten. The hook checks formatting and nothing else. `make lint` runs clippy, golangci-lint and credo across nine services; a hook people wait thirty seconds for is a hook people pass --no-verify to, and then it protects nothing. Each language is checked only when a file of that language is staged, because the two slow starts are the BEAM and cargo and neither should be paid for a change that did not touch them. `make fmt` is the other half: whatever the hook rejects, it fixes. Two deliberate omissions: - No `buf format`. It reflows .proto comments onto a single space before the slashes, which destroys the column alignment several of those files use to keep a field's meaning readable next to its number. That is the author's style choice and a hook is the wrong place to overrule it — `make proto-lint` already covers the checks that catch real mistakes. - No `mix format` for a service without a .formatter.exs, since broadcast is still an empty shell (ADR 0010). Also fixes what gofmt immediately found: a stray blank line in driver.go, from #10. golangci-lint does not have gofmt enabled here, so CI never saw it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
mainis currently red.simulation corefails on rustfmt:An
if/elsein the deploy test added by ADR 0011 (7f593a9). Formatting only — the 34 sim tests and clippy are both clean before and after, and I re-ran everything else onmainto be sure nothing else has drifted:cargo test(sim-core)cargo clippy --all-targets -D warningsgo test ./...(bank, world-gateway, farm, conformance)mix test(tavern)buf lintWorth fixing properly
This is the third time formatting has landed on
mainand turned the lint job red — the same thing happened twice around #5, once on code from #3 and once on code from #4.The pattern is always the same: rustfmt is enforced in CI and run nowhere else, so it is caught after landing rather than before. Two cheap options, neither done here because they are their own decision:
cargo fmton staged Rustmake fmttarget alongside the existingmake lint, so there is something obvious to runRight now the only way to find out is to push and wait, which is exactly when it is most annoying.
🤖 Generated with Claude Code