From 1d024b8c7ba042ed9c3f14115cceb3aaf32bd6b6 Mon Sep 17 00:00:00 2001 From: Valentin Millet Date: Thu, 3 Dec 2026 19:58:58 +0100 Subject: [PATCH] Repository: reformatting commit left out of the blame Co-Authored-By: Claude Opus 5.5 --- .git-blame-ignore-revs | 3 +++ docs/architecture.md | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .git-blame-ignore-revs diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs new file mode 100644 index 000000000..53f3281bc --- /dev/null +++ b/.git-blame-ignore-revs @@ -0,0 +1,3 @@ +# Commits that only reformat, left out of a blame: `git config blame.ignoreRevsFile .git-blame-ignore-revs`. +# Code formatted at 110 columns (#1851) +97af2e0fd1f0dd5a07bf0b9b69811e6778ea6d73 diff --git a/docs/architecture.md b/docs/architecture.md index c38213a16..a03e36d84 100644 --- a/docs/architecture.md +++ b/docs/architecture.md @@ -6698,8 +6698,10 @@ stress budget holds only if it stops keeping the bodies. `cargo test --workspace --exclude e2e` runs everything but the scenarios. `cargo clippy --workspace --all-targets --all-features -- -D warnings` (`--all-features` is what compiles the `e2e` flavour) and `cargo fmt --all --check` gate the code; `rustfmt.toml` sets lines -of 110 columns, filled before they are cut, a chain of calls past 80 cut at each call. The workspace -`Cargo.toml` sets `unsafe_code = "forbid"` (D7) and denies `clippy::all` and `clippy::pedantic`. +of 110 columns, filled before they are cut, a chain of calls past 80 cut at each call. A commit that +only reformats is named in `.git-blame-ignore-revs`, which GitHub's blame leaves out, and a local one +after `git config blame.ignoreRevsFile .git-blame-ignore-revs`. The workspace `Cargo.toml` sets +`unsafe_code = "forbid"` (D7) and denies `clippy::all` and `clippy::pedantic`. Unit tests are inline `#[cfg(test)] mod tests` blocks at the bottom of the file they cover — the idiomatic Rust form, and the one that keeps a test next to what it asserts. Shared