Open lopopolo opened 1 year ago
Pretty interesting idea! RFC 3389 also talks about Clippy, so I see implementing this [lints.clippy]
table in the future (Very possibly if/when the feature gets stabilized)
Currently, unless you hack on Clippy's source or create a script to parse [lints.clippy]
and move it to the terminal / clippy.toml
, we don't have any options to do this.
[lints.clippy]
has now been stabilized in Rust 1.74. Supporting clippy.toml
config in Cargo.toml
would be good for 1.75....
Description
Cross-posting from:
Originally posted by @lopopolo in https://github.com/rust-lang/cargo/issues/12115#issuecomment-1575681614
I would like to reduce the proliferation of configuration files in the root of my repositories as much as possible. Would it be possible and/or an accepted feature to read the config normally found in
clippy.toml
(likedoc-valid-idents
) fromCargo.toml
?I don't believe this requires dedicated support from the Cargo team and could be done today with tool-specific metadata, like this example for configuring docs.rs:
Version
Additional Labels
@rustbot label +C-question