dotnet / dotnet/roslynator

Remove/merge/adapt to Roslynator all new Visual Studio 2019 refactorings

Open
#537 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
3.5k
Forks
294
Avg merge
2h 30m
Merged PRs (30d)
4

Description

**Product and Version Used**:
2.1.0 for VS 2019 (Preview)

**Steps to Reproduce**:
Just the first example that comes to my mind: define a class in which a private field should be readonly because you assign it only in its class constructor:

With this class:

![image](https://user-images.githubusercontent.com/11348479/56298095-d832a400-6131-11e9-931f-35b95de71c19.png)

![image](https://user-images.githubusercontent.com/11348479/56298052-c6e99780-6131-11e9-8e1a-48247bd82490.png)

**Actual Behavior**:
- VS2019 suggests you to "Add readonly modifier" IDE044
- Roslynator suggest you to "Mark _abc as readonly" RCS1169

**Expected Behavior**:
Just show one of the two, and like this for all duplicated refactorings

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.