6 comments (6 comments)0 reactions (0 reactions)0 assignees (0 assignees)Rust1,391 forks (1,391 forks)batch import
A-lintL-unnecessaryT-middlegood first issue
Repository metrics
- Stars
- 10,406 stars (10,406 stars)
- PR merge metrics
- Avg merge 19d 22h (Avg merge 19d 22h)113 merged PRs in 30d (113 merged PRs in 30d)
Description
let x = foo.bar;
let y = x.met();
Should be
let y = foo.bar.met();
If x is not used anywhere else
Contributor guide
- Research direction
- Study Clippy's lint creation guide, then implement a lint that detects when a variable is assigned from a field/method call and only used in a single subsequent method chain. Use AST patterns and maybe data flow analysis to ensure the variable is not used elsewhere. Emit a suggestion to inline the chain.
- Tech stack
- rust
- Domain
- devtools
- Issue type
- Feature
- Prerequisites
- RustGitClippy development setup