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>
9 lines
282 B
TOML
9 lines
282 B
TOML
# Clippy configuration for ZeroClaw.
|
|
# Thresholds tuned to match codebase patterns and reduce noise from
|
|
# existing allow-attributes while still catching genuinely complex code.
|
|
|
|
cognitive-complexity-threshold = 30
|
|
|
|
too-many-arguments-threshold = 10
|
|
|
|
too-many-lines-threshold = 200
|