add cognitive_complexity lint with limit 10
This commit is contained in:
@@ -0,0 +1 @@
|
||||
cognitive-complexity-threshold = 10
|
||||
@@ -4,6 +4,7 @@ This library contains all logic that happens in `pacdef` under the hood.
|
||||
|
||||
#![warn(
|
||||
clippy::as_conversions,
|
||||
clippy::cognitive_complexity,
|
||||
clippy::option_if_let_else,
|
||||
clippy::redundant_pub_crate,
|
||||
clippy::semicolon_if_nothing_returned,
|
||||
|
||||
@@ -3,6 +3,7 @@ Procedural macros for `pacdef`.
|
||||
*/
|
||||
#![warn(
|
||||
clippy::as_conversions,
|
||||
clippy::cognitive_complexity,
|
||||
clippy::option_if_let_else,
|
||||
clippy::redundant_pub_crate,
|
||||
clippy::semicolon_if_nothing_returned,
|
||||
|
||||
Reference in New Issue
Block a user