-
Notifications
You must be signed in to change notification settings - Fork 633
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 #![warn(clippy::all)] #1528
Conversation
@@ -8,6 +8,7 @@ | |||
#![cfg_attr(not(feature = "std"), no_std)] | |||
|
|||
#![warn(missing_docs, missing_debug_implementations, rust_2018_idioms)] | |||
#![warn(clippy::all)] |
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.
This is separated from other lints (missing_docs
, rust_2018_idioms
, etc.) because the providers are different.
How does this work with vscode? I would expect it to run either |
Ah, yes, looks like RLS defaults to detecting clippy lint config unless you override the I dislike the fact that |
Ah, as you say that's a feature of rls. |
Certainly "all" is a misleading name. Maybe |
Yeah |
I don't have a strong opinion-- I'm not an RLS user either. +1 that |
(Hmm, |
ebe8e86
to
aa4df31
Compare
All lints included in
clippy::all
are enabled by default when doingcargo clippy
.But we can only check this by actually running
cargo clippy
.In some editors, using
#![warn(clippy::all)]
makes it possible to receive warnings as well as lints provided by the language (at least with the vscode I use).We will be happy because we do not have to check each time in local.