From fb87fb9d35816fa66f2b7cf5770fc80bd8a81e18 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Thu, 12 Jun 2025 19:28:03 +0300 Subject: [PATCH] meta: vendor tooling config --- .clippy.toml | 4 ++++ .rustfmt.toml | 5 +++++ 2 files changed, 9 insertions(+) create mode 100644 .clippy.toml create mode 100644 .rustfmt.toml diff --git a/.clippy.toml b/.clippy.toml new file mode 100644 index 00000000..c5898979 --- /dev/null +++ b/.clippy.toml @@ -0,0 +1,4 @@ +avoid-breaking-exported-api = false +allowed-idents-below-min-chars = [ "x", "y", "z", "r", "g", "b", "c", "s" ] +absolute-paths-allowed-crates = [ "cstree" ] +allowed-wildcard-imports = [ "super", "Kind" ] diff --git a/.rustfmt.toml b/.rustfmt.toml new file mode 100644 index 00000000..3663d8db --- /dev/null +++ b/.rustfmt.toml @@ -0,0 +1,5 @@ +edition = "2024" # Keep in sync with Cargo.toml. +group_imports = "StdExternalCrate" +doc_comment_code_block_width = 100 +condense_wildcard_suffixes = true +imports_granularity = "Crate"