-
Notifications
You must be signed in to change notification settings - Fork 18
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
Clippy wants #79
Comments
You are perhaps also interested in Seems like you're also tracking this in #16 though :) |
this is a awsome list, thanks |
@repi what are your thoughts on the new I considered converting to it and submitting a PR here, but a massive downside is that the table isn't forced down on all crates from the workspace; instead every individual workspace member crate has to opt-in by setting |
it is unfortunate and a miss as it makes it very error prone to opt into the workspace lints (rather than opting out), we should have tested the new clippy workspace lint setting more in nightly and given feedback about that. for our main projects we'll likely still use the new for all of our smaller open source projects we will likely not change to use the new functionality just because of this reason, it is easier to use hope these new lint support can be improved to be implicitly inherited from the workspace without changes in the future, this seems to be the main discussion issue for that: |
Same for us, I've been subscribed to the relevant issues but was never able to follow up on testing this. That said it likely won't have made a difference given the same reasons in the linked issue: this is an MVP, and implicit/forced inheritance is an addition that can be supplied in later updates. Keep us posted if you figure out some trivial CI tooling, we might adopt that :) |
Wish list of Clippy lints and features & bug fixes we would like to see added/improved/fixed based on the Rust projects we've been developing at Embark.
This is not a complete list, but an attempt to keep a bit of structure for our own sake, and may be of interest for Clippy lint developers as well.
Should have
Lints & Clippy features or fixes that would directly improve or help our workflows
#[allow(unsafe_code)]
should be allowed afterSAFETY:
docs rust-lang/rust-clippy#8679 (Embark filed)assert_eq!
rust-lang/rust-clippy#8567 (Embark filed)std::{include_str!, include_bytes!};
calls. rust-lang/rust-clippy#7005 (Embark filed)cast_lossless
)undocumented_unsafe_blocks
does not trigger on unsafe trait impls rust-lang/rust-clippy#8505unnecessary_safety_comment
): reverse ofundocumented_unsafe_blocks
rust-lang/rust-clippy#7954missing_docs_in_private_items
into various lints rust-lang/rust-clippy#5736 (by @jhpratt)derive_partial_eq_without_eq
will trigger for third party crate derives rust-lang/rust-clippy#9320uninlined_format_args
(topedantic
ornursery
) rust-lang/rust-clippy#10087needless_pass_by_ref_mut
: false positive with closures rust-lang/rust-clippy#11620#[cfg(feature = "…")]
blocks rust-lang/rust-clippy#11649Nice to have
Lints & Clippy features or fixes that would be nice to have, but are lower priority to us than the above list.
instant.elapsed()
overInstant::now() - instant
rust-lang/rust-clippy#8603std::ptr::swap(a, b)
instead ofstd::mem::swap(&mut *a, &mut *b)
rust-lang/rust-clippy#7381!count != 0
rust-lang/rust-clippy#5794unnecessary_lazy_evaluations
does not take cost of expression into account rust-lang/rust-clippy#8522 (by @jhpratt)mut
reference in parameter rust-lang/rust-clippy#8863Not filed / found
Fixes or enhancements that believe there is no issue for yet, if you find one please do comment and we'll update it here.
cargo clippy --fix
often doesn't work and it is unclear to the user which lints it works for and which it skipslog::info!("hej")
instead ofuse log::info; info!("hej")
by specifyinglog
crate inclippy.toml
section for the lint.Option<()>
as we've seen that use in code just to (too) easily early out with?
on empty options.Related tracking issues for other Rust components:
The text was updated successfully, but these errors were encountered: