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

Expressions | Simplification --- | --- .Max(x => x).MaxBy(x => x).Order().Last().OrderDescending().First() | .Max() .OrderBy(keySelector).Last().OrderByDescending(keySelector).First() | MaxBy(keySelector) .Min(x => x).MinBy(x => x).Order().First().OrderDescending().Last() | .Min() .OrderBy(keySelector).First().OrderByDescending(keySelector).Last() | MinBy(keySelector)

RCS1077 should recommend replacing `.ToDictionary(keySelector, x => x)` with `.ToDictionary(keySelector)`

RCS1077 should recommend removing `.Select(x => x)`.

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

RCS1077 should recommend replacing these patterns: ```cs a.Where(b => c.Contains(b)); x.Where(y => !z.Contains(y)); ``` With these instead: ```cs a.Intersect(c); x.Except(z); ``` In LINQ-to-objects this will remove nested loops resulting in...

It would be nice if we had a sort of developer guide to help show how to get started with cloning, building, and running tests in the project for people...

Hi, I'm using the CLI version to generate the docs of my public API and I'm getting some errors. I suppose that a file will contain an invalid character but...

Given the following code: ````csharp var sb = new StringBuilder(); var var1 = DateTime.Now.ToString(); sb.Append($"ABC{var1}EFG"); ```` The third line used string interpolation, which is unnecessary, can be refactored to a...

**Versions:** C# Dev Kit v1.11.11 (pre-release) "Roslynator.CodeFixes" Version="4.12.7" "Roslynator.Refactorings" Version="4.12.7" **Steps to Reproduce**: Just enable C# Dev Kit **Actual Behavior**: Code analysis working **Expected Behavior**: Actually, not working

Hi , last two weeks I run Roslynator cli 0.8.9 and it worked fine. However , its failed when I try to run it today. I tried to upgrade to...

Area-CLI