rust-lang / rust-lang/rust-clippy
Addition: Some preliminary checks for while and if statements
Open
Nobody has claimed this yet.
C-enhancement
E-medium
L-correctness
L-unnecessary
T-middle
- Dominant language
- Rust
- Stars
- 13.5k
- Forks
- 2.2k
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 32
Description
This is a suggestion for addition for checks to while statements and if statements. This would mainly include checks for things like tautologies (similar to the lint for while to loop) and overlapping check statements in if/else if statements.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the existing lint for while to loop, then examine how if and else if statements are represented in the project. Define the tautology and overlapping-check cases precisely before identifying the relevant lint entry points and tests; done means the intended checks are specified and covered by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100