Skip to content

Commit

Permalink
Merge pull request #64 from dandi/up-lints
Browse files Browse the repository at this point in the history
Update lint configuration
  • Loading branch information
jwodder authored Feb 10, 2024
2 parents 4dc4b9e + 090fc00 commit be1d891
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ anyhow = "1.0.79"

[lints.rust]
# Lint groups:
future_incompatible = "deny"
rust_2018_idioms = "deny"
unused = { level = "deny", priority = 0 }
future_incompatible = { level = "deny", priority = -1 }
rust_2018_idioms = { level = "deny", priority = -1 }
unused = { level = "deny", priority = -1 }

# Set a lint in "unused" back to "warn" (to be denied again under CI):
dead_code = { level = "warn", priority = 5 }
dead_code = "warn"

# Deny various allow-by-default lints:
macro_use_extern_crate = "deny"
Expand All @@ -79,7 +79,6 @@ unsafe_op_in_unsafe_fn = "deny"
unused_import_braces = "deny"
unused_lifetimes = "deny"
unused_qualifications = "deny"
unused_tuple_struct_fields = "deny"

# Deny various warn-by-default lints:
ambiguous_glob_reexports = "deny"
Expand Down Expand Up @@ -140,7 +139,7 @@ while_true = "deny"

[lints.clippy]
# Deny all warn-by-default lints:
all = "deny"
all = { level = "deny", priority = -1 }

# Warn on various allow-by-default lints (denied under CI):
dbg_macro = "warn"
Expand Down Expand Up @@ -185,8 +184,8 @@ if_then_some_else_none = "deny"
ignored_unit_patterns = "deny"
impl_trait_in_params = "deny"
implicit_clone = "deny"
implied_bounds_in_impls = "deny"
imprecise_flops = "deny"
infinite_loop = "deny"
index_refutable_slice = "deny"
invalid_upcast_comparisons = "deny"
items_after_statements = "deny"
Expand Down

0 comments on commit be1d891

Please sign in to comment.