Enforce cargo fmt across the codebase (single reformat + CI gate) #35
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Summary
The codebase is not
cargo fmt-clean. Runningcargo fmt --checkon
mainreports ~1800 diff hunks spread across files that norecent change has touched (e.g.
src/app.rs), so this is along-standing baseline drift, not the product of any single session.
This surfaced again during the ADR-0052 vestigial-
sourceunwind(commit
e8fa859): the refactor touched ~164 call sites, butcargo fmtcould not be used to normalise them, because it would havereformatted the entire codebase and buried the real change under a
massive unrelated diff. The edits were hand-matched to surrounding
style instead. It has reportedly also come up on the CI branch.
Why now / why not yet
We want this done once, deliberately, not piecemeal:
so the formatting churn is isolated and reviewable on its own.
separate branch) so the same
rustfmt.toml/ format-gate is appliedconsistently and CI enforces it going forward.
merge conflicts (a full-tree reformat vs. in-flight feature diffs).
Target: after the outstanding branches (incl. CI) are merged, and
before the first "real" publication.
Scope / acceptance criteria
rustfmt.tomlsettings (or accept rustfmt defaults) —confirm with the maintainer before bulk-applying.
cargo fmtonce across the whole tree in a single isolatedcommit (no functional changes mixed in).
cargo fmt --checkis clean onmain.cargo fmt --check(couples with the CI/TT5 work).cargo test,cargo clippy --all-targets).Notes
branch merge.