-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Read clippy configuration normally found in clippy.toml
from Cargo.toml
#10890
Comments
Pretty interesting idea! RFC 3389 also talks about Clippy, so I see implementing this Currently, unless you hack on Clippy's source or create a script to parse |
|
I went through the discussions in rust-lang/rfcs#3389, and to me it seems like the
Given this, should using something like tool specific metadata be considered separately from the Cargo lints support? I would also like to only have clippy's configuration be in
|
For 2025H1 there's a project goal to stabilize the |
(Adding link to the project goal for reference) |
Description
Cross-posting from:
[lints]
table RFC 3389 cargo#12115Originally posted by @lopopolo in rust-lang/cargo#12115 (comment)
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
The text was updated successfully, but these errors were encountered: