rust-clippy
https://github.com/rust-lang/rust-clippy
Rust
A bunch of lints to catch common mistakes and improve your Rust code. Book: https://doc.rust-lang.org/clippy/
Triage Issues!
When you volunteer to triage issues, you'll receive an email each day with a link to an open issue that needs help in this project. You'll also receive instructions on how to triage issues.
Triage Docs!
Receive a documented method or class from your favorite GitHub repos in your inbox every day. If you're really pro, receive undocumented methods or classes and supercharge your commit history.
Rust not yet supported23 Subscribers
Add a CodeTriage badge to rust-clippy
Help out
- Issues
- Changing `bool` to `Result<(), ()>` in function return type leads to clippy warnings
- Add tuple swap algorithm detection to existing clippy::manual_swap
- `ref_as_ptr` suggests using `ptr::from_ref(r)` where it should instead suggest `ptr::from_mut(r)` for `r: &mut T`.
- Suggested lint: avoid passing `&mut _` to `core::ptr::from_ref` and `core::ptr::NonNull::from_ref`
- Lint against inconsistent import paths
- False Negative of `clippy::manual_strip`
- Lint against `HashMap`s where the key is not `Eq + Hash`
- lines().count() should warn in case of Err
- unnecessary_cast false positive when casting pointers to types with lifetime parameters
- Some warnings are not reported if rust-src component is not installed
- Docs
- Rust not yet supported