roslynator icon indicating copy to clipboard operation
roslynator copied to clipboard

Roslynator is a set of code analysis tools for C#, powered by Roslyn.

Results 152 roslynator issues
Sort by recently updated
recently updated
newest added

**Product and Version Used**: Roslynator.Analyzers Version="3.2.0" Roslynator.Formatting.Analyzers Version="1.2.0" **Steps to Reproduce**: - Edit .csproj file and add `AllEnabledByDefault` **Actual Behavior**: Disabled rules are not enabled by default. (It works for...

Resolution-Answered
Area-Analyzers

[RCS1051](https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1051.md) **Product and Version Used**: Microsoft Visual Studio Community 2019 Version 16.10.1 Roslynator.Analyzers 3.2.0 via Nuget **Steps to Reproduce**: .editorconfig: ``` dotnet_diagnostic.RCS1051.severity = warning roslynator.RCS1051.do_not_parenthesize_single_token = true ``` ```csharp public...

If I use the recommended editorconfig settings concerning modifier order at: https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-code-style-settings-reference#example-editorconfig-file ``` # Modifier preferences csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:suggestion ``` Reviewing the following code: RCS1019 wants new to come before...

Area-Analyzers
Resolution-By Design

**Product and Version Used**: Roslynator.Analyzers v3.1.0 nuget package **Actual Behavior**: Currently, there's no analyzer or codefix which analyzes and fixes the class member by their accessibility and/or alphabetical order. StyleCop...

Feature Request
Area-Analyzers

**Product and Version Used**: Visual Studio Extension 3.1.0 **Steps to Reproduce**: Consider the class below: ```csharp public partial class Foo { public Foo() { this.Initialize(); } partial void Initialize(); }...

Bug
Area-Analyzers

**Product and Version Used**: Roslynator 2019 VS Extension, v3.2.0 **Steps to Reproduce**: ```csharp var key = "key_1"; var value = "false"; switch (key) { case "key_1": { bool.TryParse(value, out var...

Bug
Area-Analyzers

Sorry, This is not an Issue, but a question... I installed the vscode extension roslynator on macOS, but it does not work properly. Is there anything I need to do?...

Suppose we have an old code like this (belongs to .NET 1x): ```C# ArrayList list = new ArrayList(); list.Add(1); list.Add(2); ``` It would be really useful to have a refactoring...

Feature Request

**Product and Version Used**: * Roslynator 2019 3.0.1 (VS 2019 extension) * .NET 5.0 **Steps to Reproduce**: ```csharp public record Foo(int A) { public virtual bool Equals(Foo? other) { if...

Area-Analyzers

**Product and Version Used**: VS2019 (16.6.1) I have found a strange behavior. If i configure the analyzers in a ruleset file and set RCS1016 to "warning", VS2019 (16.6.1) shows this...

Bug
Area-Analyzers