dotnet / dotnet/roslynator

RCS1077 for DistinctBy(x => x)

Open
#1,489 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
3.5k
Forks
294
Avg merge
2h 30m
Merged PRs (30d)
4

Description

RCS1077 should recommend replacing .DistinctBy(x => x) with .Distinct()

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the RCS1077 analyzer implementation and its tests, then inspect how the rule handles the shown .DistinctBy(x => x) pattern. Done means the analyzer recommends .Distinct() for that case and the tests verify the recommendation without regressing existing RCS1077 behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.