feat(tooling): add .editorconfig, rustfmt.toml, and clippy.toml
Add explicit linting and formatting configuration files to document intent and provide consistent defaults across editors and platforms. - .editorconfig: UTF-8, LF line endings, 4-space indent for Rust, 2-space for YAML/TOML, preserve trailing whitespace in Markdown. - rustfmt.toml: Pin edition to 2021 matching Cargo.toml. Uses standard defaults; file documents that this is intentional. - clippy.toml: Set cognitive-complexity-threshold to 30, too-many-arguments-threshold to 10, and too-many-lines-threshold to 200. Thresholds tuned to match existing codebase patterns and reduce noise from existing allow-attributes. All values match current implicit defaults or are tuned to avoid triggering on existing code. No source code changes required. Validated: cargo fmt --check and cargo clippy -D clippy::correctness both pass with no regressions. Resolves #662 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
d756293871
commit
b1c04d8f88
3 changed files with 35 additions and 0 deletions
1
rustfmt.toml
Normal file
1
rustfmt.toml
Normal file
|
|
@ -0,0 +1 @@
|
|||
edition = "2021"
|
||||
Loading…
Add table
Add a link
Reference in a new issue