diff --git a/Cargo.toml b/Cargo.toml index bec30ba..55196dc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -32,14 +32,18 @@ state-history-forensic = "0.1" unsafe_code = "forbid" [workspace.lints.clippy] +all = { level = "warn", priority = -1 } pedantic = { level = "warn", priority = -1 } +correctness = { level = "deny", priority = -1 } +suspicious = { level = "deny", priority = -1 } unwrap_used = "deny" expect_used = "deny" -module_name_repetitions = "allow" -must_use_candidate = "allow" -missing_errors_doc = "allow" -missing_panics_doc = "allow" -doc_markdown = "allow" -cast_possible_truncation = "allow" -cast_possible_wrap = "allow" -cast_sign_loss = "allow" +# priority 1 so these individual allows outrank the grouped warn/deny entries above. +module_name_repetitions = { level = "allow", priority = 1 } +must_use_candidate = { level = "allow", priority = 1 } +missing_errors_doc = { level = "allow", priority = 1 } +missing_panics_doc = { level = "allow", priority = 1 } +doc_markdown = { level = "allow", priority = 1 } +cast_possible_truncation = { level = "allow", priority = 1 } +cast_possible_wrap = { level = "allow", priority = 1 } +cast_sign_loss = { level = "allow", priority = 1 }