Skip to content

Commit

Permalink
feat: add some new lints
Browse files Browse the repository at this point in the history
  • Loading branch information
OliverNChalk committed Dec 2, 2024
1 parent cb29934 commit 2f4038a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ authors = ["Oliver Chalk"]
license = "MIT OR Apache-2.0"

[lints.clippy]
pedantic = { level = "warn", priority = -1 }
arithmetic_side_effects = "warn"
# See `clippy.toml`.
disallowed_methods = "warn"
arithmetic_side_effects = "warn"
match_bool = "allow"
missing_const_for_fn = "warn"
module_name_repetitions = "allow"
pedantic = { level = "warn", priority = -1 }
trivially_copy_pass_by_ref = "warn"

[dependencies]
clap = { version = "4.2.7", features = ["derive"] }
Expand Down
2 changes: 1 addition & 1 deletion taplo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ array_auto_expand = true
allowed_blank_lines = 1

[[rule]]
keys = ["dependencies", "dev-dependencies", "build-dependencies", "toolchain", "workspace.dependencies"]
keys = ["lints.clippy", "dependencies", "dev-dependencies", "build-dependencies", "toolchain", "workspace.dependencies"]

[rule.formatting]
reorder_keys = true

0 comments on commit 2f4038a

Please sign in to comment.