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

It would be nice if you can provide a refactoring to replace one or more out parameters of a method to return them (and may be vice versa)

Feature Request
Area-Refactorings

Rather than analysing whole project and getting thousands of warnings, I'd like to see if each individual merge request contributes to code quality improvement or degradation. Can roslynator be used...

We're in the process of investigating the applicability of an internal Roslyn API ([`IRefactoringHelpers`](https://github.com/dotnet/roslyn-analyzers/blob/e0578cd7e5644a6a4c5bc3d8476aa31d1650b6a2/src/Utilities/Refactoring/IRefactoringHelpers.cs)) to third-party implementations of `CodeRefactoringProvider`. I believe this project has a large number of such implementations,...

These are the roadmap I'm planning to do: - [ ] Add a LocalizableResources project. This project contains the main Resources.resx file and several localized files such as Resources.zh-CN.resx. -...

**Product and Version Used**: v2.9.0 `RCS1077: Optimize LINQ method call` is not applied in some cases, i.e. when a variable could be inlined. **Code with Diagnostic**: ```csharp int count =...

Feature Request
Area-Analyzers

**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...

**Product and Version Used**: Roslynator 2.9.0, Visual Studio 2019 16.4.4 **Steps to Reproduce**: [Demo on SharpLab](https://sharplab.io/#v2:CYLg1APgAgTAjAWAFBQMwAJboMLoN7LpGYZRwBsmALOgGIAUARgPbMA26jANJ6x4zACUhYgSTF0AXxFE01dAFl6g9DPxqJASwB2AF3TaArgFt0AXnQAGANwbiO/UeMxzV2+InEAIumCujbGzunsQA9KEMTugAPAYmMDx+AHzo9H4A/Om+goLBIXT09FGxTkKJ6Clp6JnZuWrSSA1yWF7IYhLNFLzs6MwADgCmAE4AhrrMQxX0PmwDAGa6PD5DmgDmABa6wh5E7fm660PMAO4GA6cAcsy6AJLGfbPGA3oDwACiAB4AxgN9uprMbTKPJEBodUhdFg9frDMYTGLTdCzBZLdArDZbNR7EIHI6nbTndBXW73R7PXSvT4/P4AoF1HZSZCSIA==) Details: icsharpcode/ILSpy#1959 ([`F(G(7));` grammar ambiguity on MSDN](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-7.0/pattern-matching#changes-to-syntactic-disambiguation)) **Actual Behavior**: `RCS1032 Remove redundant parentheses.` shown...

Bug
Area-Analyzers

**Product and Version Used**: Roslynator 2.3.0 Visual Studio 2017, 15.9.19 **Steps to Reproduce**: Consider a trivial switch-case where sections have multiple statements: ```csharp public void TestSwitch(int param) { switch (param)...

Area-Analyzers

there should be an analyzer that sorts `using`s alphabethically. Optional: usings for `System.*` and `Microsoft.*` namespaces should come before others.

Feature Request
Area-Analyzers

Are there any samples, documentation how to start writing analyzers ?

Documentation