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