From 172ddd7f5f84e7f6070a66fbefb970109305c048 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Mon, 27 May 2024 20:07:41 +0900 Subject: [PATCH] Ignore more lints at workspace level --- .github/.cspell/project-dictionary.txt | 2 ++ Cargo.toml | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/.github/.cspell/project-dictionary.txt b/.github/.cspell/project-dictionary.txt index d0c7d9d..876c515 100644 --- a/.github/.cspell/project-dictionary.txt +++ b/.github/.cspell/project-dictionary.txt @@ -5,6 +5,7 @@ bitangent blinn brep bytecount +cfgs clearcoat collada ctypes @@ -39,6 +40,7 @@ nalgebra newmtl newparam NMTOKEN +nonminimal OKINO phong pipefail diff --git a/Cargo.toml b/Cargo.toml index 0737934..8dff047 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -55,6 +55,8 @@ improper_ctypes_definitions = "warn" non_ascii_idents = "warn" rust_2018_idioms = "warn" single_use_lifetimes = "warn" +unexpected_cfgs = { level = "warn", check-cfg = [ +] } unreachable_pub = "warn" # unsafe_op_in_unsafe_fn = "warn" # Set at crate-level instead since https://github.com/rust-lang/rust/pull/100081 is not available on MSRV [workspace.lints.clippy] @@ -72,10 +74,13 @@ borrow_as_ptr = { level = "allow", priority = 1 } # https://github.com/rust-lang declare_interior_mutable_const = { level = "allow", priority = 1 } # https://github.com/rust-lang/rust-clippy/issues/7665 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 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 } +nonminimal_bool = { level = "allow", priority = 1 } # buggy: https://github.com/rust-lang/rust-clippy/issues?q=is%3Aissue+is%3Aopen+nonminimal_bool similar_names = { level = "allow", priority = 1 } single_match = { level = "allow", priority = 1 } single_match_else = { level = "allow", priority = 1 }