-
Notifications
You must be signed in to change notification settings - Fork 1.8k
stable clippy.toml: Create RFC #15630
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
base: master
Are you sure you want to change the base?
Conversation
|
d64c47e
to
e5a9868
Compare
This PR creates a public RFC for how clippy.toml should be handled. I made some improvements to some parts of the system. These are better to get fixed today than to wait until someone has a problem with them and then have to make a breaking change. Based on Philipp's RFC. This would be the first stage of 3 to completely stabilize clippy.toml
e5a9868
to
fb11b83
Compare
@ojeda Is this more or less what you need? The RFC stabilizes the existence of the Clippy configuration file, the algorithm to find it, the existence of The only thing needed apart from this would be stabilizing the configuration options themselves. Which, because of your usecase, the first ones will be |
Thanks for working on this!
That would be great. It may be good to mention in the RFC what would be the "stable mode" -- IIUC it would fail on unknown keys (like Clippy today), but it would not allow to use unstable keys (unlike Clippy today). Is that correct? If so, then does that mean that unless all those options (
If Clippy plans to support that eventually, then an alternative would be to not stabilize the file and go for flags directly -- for us it would make it easier to pass flags to Clippy depending e.g. on the version. But, of course, that would open again the questions about how to pass all what the TOML allows for non-trivial keys. IIRC we discussed it in Zulip a while ago. |
|
||
The list of available configurations along their default values is | ||
[here](https://doc.rust-lang.org/nightly/clippy/lint_configuration.html). | ||
You can enable unstable features via the `unsable-conf` configuration option. If this configuration is set to `true`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can enable unstable features via the `unsable-conf` configuration option. If this configuration is set to `true`, | |
You can enable unstable features via the `unstable-conf` configuration option. If this configuration is set to `true`, |
[here](https://doc.rust-lang.org/nightly/clippy/lint_configuration.html). | ||
You can enable unstable features via the `unsable-conf` configuration option. If this configuration is set to `true`, | ||
Clippy will warn about unknown or renamed keys, and will allow the modification of unstable configuration options. One | ||
can use `unstable-conf = true` sparingly in their development cycle to check for unknown Rust to check for typos or |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can use `unstable-conf = true` sparingly in their development cycle to check for unknown Rust to check for typos or | |
can use `unstable-conf = true` sparingly in their development cycle to check for typos or |
This PR creates an RFC for how clippy.toml should be handled. I made some improvements to some parts of the system. These are better to get fixed today than to wait until someone has a problem with them and then have to make a breaking change.
Based on Philipp's RFC. This would be the first stage of 3 to completely stabilize
clippy.toml
Being that Philipp is on vacation, I'm not sure who could review this, it's a team-wide thing anyways.
changelog:none
Rendered