-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
-A --allow should take precedence over -D --deny in CLI #4778
Comments
The logic of handling command line lint flags is in rustc, not in Clippy: To check if this is a Clippy issue: What is the result of Answer:
So yeah this has to be addressed in rustc, not in Clippy. I keep this issue open, because, this behavior would also be nice to have from the Clippy perspective. |
I have a weird issue, where I cannot disable a single lint via command line.
Running the following
still results in lint being applied:
Changing the order of the CLI arguments doesn't affect anything.
While disabling lint via
!#[allow(clippy::must_use_candidate)]
attribute in crate's root works OK, as expected.I suggest that things listed in
allow
(no matter where) as a white list should take precedence overdeny
as a black list.The text was updated successfully, but these errors were encountered: