mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 20:17:45 +00:00
move lints from rustflags to Cargo.toml
This prevents unnecessary rebuilds when mixing runs of `cargo clippy` and other cargo commands (e.g., `cargo c && cargo clippy && cargo c` no longer rebuilds).
This commit is contained in:
parent
aaa541a8ad
commit
5994759560
2 changed files with 14 additions and 18 deletions
|
@ -1,13 +1,2 @@
|
||||||
[target.x86_64-unknown-redox]
|
[target.x86_64-unknown-redox]
|
||||||
linker = "x86_64-unknown-redox-gcc"
|
linker = "x86_64-unknown-redox-gcc"
|
||||||
|
|
||||||
[target.'cfg(clippy)']
|
|
||||||
rustflags = [
|
|
||||||
"-Wclippy::use_self",
|
|
||||||
"-Wclippy::needless_pass_by_value",
|
|
||||||
"-Wclippy::semicolon_if_nothing_returned",
|
|
||||||
"-Wclippy::single_char_pattern",
|
|
||||||
"-Wclippy::explicit_iter_loop",
|
|
||||||
"-Wclippy::if_not_else",
|
|
||||||
]
|
|
||||||
|
|
||||||
|
|
21
Cargo.toml
21
Cargo.toml
|
@ -559,10 +559,17 @@ panic = "abort"
|
||||||
strip = true
|
strip = true
|
||||||
|
|
||||||
[lints.clippy]
|
[lints.clippy]
|
||||||
multiple_crate_versions = { level = "allow", priority = 1 }
|
multiple_crate_versions = "allow"
|
||||||
cargo_common_metadata = { level = "allow", priority = 1 }
|
cargo_common_metadata = "allow"
|
||||||
uninlined_format_args = { level = "allow", priority = 1 }
|
uninlined_format_args = "allow"
|
||||||
missing_panics_doc = { level = "allow", priority = 1 }
|
missing_panics_doc = "allow"
|
||||||
all = "deny"
|
|
||||||
cargo = "warn"
|
needless_pass_by_value = "warn"
|
||||||
pedantic = "deny"
|
semicolon_if_nothing_returned = "warn"
|
||||||
|
single_char_pattern = "warn"
|
||||||
|
explicit_iter_loop = "warn"
|
||||||
|
if_not_else = "warn"
|
||||||
|
|
||||||
|
all = { level = "deny", priority = -1 }
|
||||||
|
cargo = { level = "warn", priority = -1 }
|
||||||
|
pedantic = { level = "deny", priority = -1 }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue