Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update lint configuration #64

Merged
merged 1 commit into from
Feb 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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