Skip to content

Commit

Permalink
cargo.toml: clippy: add comments explaining lints
Browse files Browse the repository at this point in the history
  • Loading branch information
bradjc committed Jan 16, 2025
1 parent 6836d23 commit 1554e7c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,15 @@ manual_unwrap_or_default = "allow"
# COMPLEXITY LINTS
complexity = { level = "deny", priority = -1 }

# Subjective, and complex functions may need many arguments.
too_many_arguments = "allow"
# This is pretty sensitive, even `Result`s with returned buffers trigger this.
# It is not worth us creating types for all of these.
type_complexity = "allow"
# We use options extensively and they can be as clear as if let statements.
option_map_unit_fn = "allow"
# Sometimes the semantic meaning of variables means it is more clear to use
# nonminimal if statements, particularly when matching hardware or datasheets.
nonminimal_bool = "allow"
identity-op = "allow"
while-let-loop = "allow"
Expand Down

0 comments on commit 1554e7c

Please sign in to comment.