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 209 roslynator issues
Sort by recently updated
recently updated
newest added
trafficstars

Affected analyzers: - empty else - empty finally - empty namespace - empty #region - empty destructor - empty initializer - empty statement

Feature Request
Area-Analyzers

Creating a new issue similar (identical?) to #853, which was closed. **Product and Version Used**: `Roslynator.Analyzers` 4.0.0 and .NET SDK 5.0.404 **Steps to Reproduce**: Run the following: ```sh dotnet new...

**Product and Version Used**: v4.1.0 **Steps to Reproduce**: C# 10 introduced [Improved Interpolated Strings](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-10.0/improved-interpolated-strings) and .NET 6 added an overload `StringBuilder.Append(ref AppendInterpolatedStringHandler)` which lets you write ```cs new StringBuilder().Append($"13{37}"); ```...

Area-Analyzers

First, this is not a duplicate of #141, #141 actually I don't use it nor found it useful sorry for this. Now what I really want is to have the...

Feature Request
Area-Refactorings

If you access loop variable from closure, variable value will change as loop continues. This can cause unintended behaviour and such accesses are generally discouraged. It will be helpful if...

Great work guys! **Product and Version Used**: 3.2.2 Running on ASP.NET 4.8, RCS1077 triggers for this snippet: ```csharp _items.Where(x => x.Id == findId).SingleOrDefault(); ``` Suggested fix is as follows but...

Resolution-Answered
Area-Analyzers

**Product and Version Used**: 3.2.0 **Steps to Reproduce**: 1. Create a new console project using .NET 5 2. Install Roslynator.Analyzers 3. Create an `.editorconfig` with the following contents ```ini [*.cs]...

Analyzer Options
Area-Analyzers

First, Thanks to the great Roslynator project. I try to analyze and fix both `Roslynators` and external analyzers like `Microsoft.CodeAnalysis.CSharp.NetAnalyzers` using Roslynator commandline tool v 0.2.0 for a project net472...

Area-CLI

**Product and Version Used**: Rider 2021.3 EAP8 .NET 6 Roslynator.Analyzers 3.3.0-rc Roslynator.Formatting.Analyzers 1.2.2 **Steps to Reproduce**: Just loading .NET 6 projects using the two mentioned Roslynator packages in Rider 2021.3...

The following error `Cannot load types from assembly` seems to write to the console output stream instead of the console error stream. Can you change it to be written as...

Area-CLI