Skip to content
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

Please make unreadable_literal configurable in clippy.toml #4843

Closed
Lokathor opened this issue Nov 24, 2019 · 5 comments
Closed

Please make unreadable_literal configurable in clippy.toml #4843

Lokathor opened this issue Nov 24, 2019 · 5 comments

Comments

@Lokathor
Copy link

As far as I can tell you can't turn it off using clippy.toml

@ghost
Copy link

ghost commented Nov 24, 2019

Clippy lints work the same way the rustc lints do. It's not possible to disable them in Cargo.toml. You need to add #[allow(<lint>)] in your code or pass -A <lint> on the command line.

@Lokathor
Copy link
Author

I said clippy.toml, which does allow some lints to be configured.

@ghost
Copy link

ghost commented Nov 24, 2019

Same story.
#3164

@flip1995
Copy link
Member

As @mikerite pointed out, lints cannot be disabled in the clippy.toml. This was discussed in multiple other issues, e.g. the clippy 1.0 RFC. This functionality may be implemented in cargo directl.

@Lokathor
Copy link
Author

interesting, please at least document this more clearly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants