From b33b00f9e7aeaa451becb79321a9b11942499506 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Tue, 2 Jul 2024 00:31:28 +0900 Subject: [PATCH] Ignore more clippy lints at workspace level --- .clippy.toml | 1 + Cargo.toml | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.clippy.toml b/.clippy.toml index 51a76c3..90e76d8 100644 --- a/.clippy.toml +++ b/.clippy.toml @@ -1,6 +1,7 @@ # Clippy configuration # https://doc.rust-lang.org/nightly/clippy/lint_configuration.html +allow-private-module-inception = true avoid-breaking-exported-api = false disallowed-names = [] disallowed-macros = [ diff --git a/Cargo.toml b/Cargo.toml index 4675f6d..f0288f1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -71,12 +71,13 @@ declare_interior_mutable_const = { level = "allow", priority = 1 } # https://git doc_markdown = { level = "allow", priority = 1 } float_cmp = { level = "allow", priority = 1 } # https://github.com/rust-lang/rust-clippy/issues/7725 incompatible_msrv = { level = "allow", priority = 1 } # buggy: doesn't consider cfg, https://github.com/rust-lang/rust-clippy/issues/12280, https://github.com/rust-lang/rust-clippy/issues/12257#issuecomment-2093667187 -lint_groups_priority = { level = "allow", priority = 1 } # https://github.com/rust-lang/rust-clippy/issues/12270 +lint_groups_priority = { level = "allow", priority = 1 } # https://github.com/rust-lang/rust-clippy/issues/12920 manual_assert = { level = "allow", priority = 1 } manual_range_contains = { level = "allow", priority = 1 } # https://github.com/rust-lang/rust-clippy/issues/6455#issuecomment-1225966395 missing_errors_doc = { level = "allow", priority = 1 } -module_name_repetitions = { level = "allow", priority = 1 } +module_name_repetitions = { level = "allow", priority = 1 } # buggy: https://github.com/rust-lang/rust-clippy/issues?q=is%3Aissue+is%3Aopen+module_name_repetitions nonminimal_bool = { level = "allow", priority = 1 } # buggy: https://github.com/rust-lang/rust-clippy/issues?q=is%3Aissue+is%3Aopen+nonminimal_bool +range_plus_one = { level = "allow", priority = 1 } # buggy: https://github.com/rust-lang/rust-clippy/issues?q=is%3Aissue+is%3Aopen+range_plus_one similar_names = { level = "allow", priority = 1 } single_match = { level = "allow", priority = 1 } single_match_else = { level = "allow", priority = 1 }