mirror of
https://github.com/rust-vmm/vhost-device.git
synced 2026-01-09 05:14:46 +00:00
Add workspace-wide lints
Crates need to opt-in by setting:
[lints]
workspace = true
In their Cargo.toml file.
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
This commit is contained in:
parent
735bbdbb21
commit
4597304b85
36
Cargo.toml
36
Cargo.toml
@ -17,3 +17,39 @@ members = [
|
||||
"vhost-device-vsock",
|
||||
"xtask",
|
||||
]
|
||||
|
||||
[workspace.lints.rust]
|
||||
unsafe_op_in_unsafe_fn = "deny"
|
||||
|
||||
[workspace.lints.rustdoc]
|
||||
broken_intra_doc_links = "deny"
|
||||
redundant_explicit_links = "deny"
|
||||
|
||||
[workspace.lints.clippy]
|
||||
enum_glob_use = "deny"
|
||||
# groups
|
||||
correctness = { level = "deny", priority = -1 }
|
||||
suspicious = { level = "deny", priority = -1 }
|
||||
complexity = { level = "deny", priority = -1 }
|
||||
perf = { level = "deny", priority = -1 }
|
||||
style = { level = "deny", priority = -1 }
|
||||
#nursery = { level = "deny", priority = -1 }
|
||||
# restriction
|
||||
dbg_macro = "deny"
|
||||
rc_buffer = "deny"
|
||||
as_underscore = "deny"
|
||||
assertions_on_result_states = "deny"
|
||||
# pedantic
|
||||
cast_lossless = "deny"
|
||||
cast_possible_wrap = "deny"
|
||||
cast_ptr_alignment = "deny"
|
||||
naive_bytecount = "deny"
|
||||
ptr_as_ptr = "deny"
|
||||
bool_to_int_with_if = "deny"
|
||||
borrow_as_ptr = "deny"
|
||||
case_sensitive_file_extension_comparisons = "deny"
|
||||
significant_drop_in_scrutinee = "allow"
|
||||
significant_drop_tightening = "allow"
|
||||
missing_safety_doc = "deny"
|
||||
undocumented_unsafe_blocks = "deny"
|
||||
option_if_let_else = "allow"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user