-
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
Create more than 2 lint groups #743
Comments
Perhaps subgroups of |
Yep. While documentation is a good thing, I don’t know if that should be reflected in a lint group. |
I don't think overlapping or nested groups work well. Mostly; I was thinking of keeping pedantic, and adding three more. clippy_stable which suggests stable ways to do unstable things, clipy_restrictions for containing things which aren't style choices (see Graydon's issue), and clippy_deprecated for the deprecated ones. I'd like to keep the Warn lints in clippy as much as possible. |
So cyclomatic_complexity would be our first restrictions lint, right? |
idk. I think cyclomatic complexity with a sensible limit is a valid style lint. |
restrictions are something like |
Right, but I don't want any lints in clippy to be groupless. |
Perhaps we could also add a "newbie" lint group. IMHO |
I think almost all our lints have cases where experts will have good reason to act against. IMO newbie lints should be part of the regular stuff. (note that inline_always's issues aren't common knowledge) |
FWIW I think that |
Closing since there are newer issues and a lot has changed. |
Currently we have two lint groups,
clippy
andclippy_pendantic
.We’ve already discussed that we should have more.
I can think of:
clippy_deprecated
: group where we move lints we ultimately want to remove (refas_slice
will be stable in 1.7 #728);clippy_non_api_breaking
: subgroup ofclippy
with only lints whose fix would not change the public API (eg. noptr_arg
,type_complexity
,wrong_pub_self_convention
, etc.). Useful for crate which did not use Clippy historically and don’t want to change their API. Or maybeclippy_api_breaking
with only those lints? Or both and ensure any lint is in either one?Can you think of other groups you’d want?
The text was updated successfully, but these errors were encountered: