New analyzer + codefix: Remove no-op Select statements
Open
Area-Analyzers
Feature Request
- Dominant language
- C#
- Stars
- 3.5k
- Forks
- 294
- Avg merge
- 2h 30m
- Merged PRs (30d)
- 4
Description
Sadly in code I often see things like this:
```
var y = collection.Select(x => x);
```
This does nothing except waste CPU cycles. An analyser and refactoring to remove these aberrations would be nice.
Contributor guide
Research direction
No files, tests, or entry points are named in the issue. Start by locating the existing analyzer and codefix structure in the repository, then use the provided collection.Select(x => x) example to determine the expected diagnostic, transformation, and test coverage; done means the no-op Select is identified and safely removable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100