diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..eaf9deb --- /dev/null +++ b/.editorconfig @@ -0,0 +1,25 @@ +# EditorConfig — https://editorconfig.org +# Provides consistent formatting defaults across editors and platforms. + +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true +indent_style = space +indent_size = 4 + +[*.md] +# Trailing whitespace is significant in Markdown (line breaks). +trim_trailing_whitespace = false + +[*.{yml,yaml}] +indent_size = 2 + +[*.toml] +indent_size = 2 + +[Dockerfile] +indent_size = 4 diff --git a/clippy.toml b/clippy.toml new file mode 100644 index 0000000..c45fd63 --- /dev/null +++ b/clippy.toml @@ -0,0 +1,9 @@ +# 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 diff --git a/rustfmt.toml b/rustfmt.toml new file mode 100644 index 0000000..3a26366 --- /dev/null +++ b/rustfmt.toml @@ -0,0 +1 @@ +edition = "2021"