-
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
use_debug
lint should not trigger on debug!()
log macro calls
#2132
Comments
There’s also |
should be very easy with the new system. basically we only want this lint on explicit calls to Basically pass in the current macro name as an argument to https://github.com/rust-lang-nursery/rust-clippy/blob/master/clippy_lints/src/write.rs#L220 and then use that to lint conditionally in https://github.com/rust-lang-nursery/rust-clippy/blob/master/clippy_lints/src/write.rs#L247 |
What about |
that, too :D good catch |
I’m trying to say, when the programmer uses |
oh... seems to me that this would be a case for "moderate sprinkling of allow"? |
So deny on |
Example use-case:
Placing
#![cfg_attr(feature = "cargo-clippy", allow(use_debug))]
before eachdebug!()
usage seems tedious to me when there are several dozens of them; and turning it off (even if locally) defeats the purpose of the lint.The text was updated successfully, but these errors were encountered: