roslynator
roslynator copied to clipboard
Roslynator is a set of code analysis tools for C#, powered by Roslyn.
Just wondering.. I'd like to be able to flag variables, fields and properties in the codebase that have a singular name. Also variables that are sole objects but have a...
I want to take a existing method in a class and move this to a new class. This is useful while doing refactoring. By placing the cursor on a method,...
I would love to have some refactor tool that could suggest non-nullable variables from my parameters or any variable. So when the cursor is on the parameters, it can suggest...
**Product and Version Used**: Latest **Steps to Reproduce**:  **Actual Behavior**: ```csharp return await fluidTemplate.RenderAsync(context); //RCS1047 ``` **Expected Behavior**: ```csharp return await fluidTemplate.RenderAsync(context); //No RCS1047 ```
https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1237/ > This analyzer is obsolete. Use [RCS1254](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1237/RCS1254) instead. The link is broken, should be https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1254
While `rename-symbol` allows fairly fine-grained selection of symbols to rename with the `--match` parameter where you can use C# to match a symbol, `find-symbol` is fairly limited and only allows...
**Product and Version Used**: NuGet package v. 4.12.4 **Steps to Reproduce**: in `.editorconfig` ``` roslynator_use_var = when_type_is_obvious ``` Code: ```csharp internal class Demo { public static void ReadOnlyCharDemo() { ReadOnlySpan...
I wouldn't enable this rule, at least not unless all the `readonly struct`s are massive. It seems like the intent is to avoid costs associated with copying of structs, but...
**Product and Version Used**: NuGet package - 4.12.4 **Steps to Reproduce**: Enable the rule ## Example 1 **Actual Behavior**: ```csharp private static readonly FrozenSet SomeThing = SomeFunction .Concat( [ //...
RCS1077 should recommend replacing `.OrderBy(x => x)` with `.Order()`.