roslynator
roslynator copied to clipboard
Roslynator is a set of code analysis tools for C#, powered by Roslyn.
**Product and Version Used**: Roslynator.Analyzers **Steps to Reproduce**: set `.editorconfig` values: ``` roslynator_trailing_comma_style = omit_when_single_line dotnet_diagnostic.RCS1260.severity = warning ``` **Actual Behavior**: Warning RCS1260 on the `,` at the end of...
**Product and Version Used**: NuGet package v. 4.10.0 **Steps to Reproduce**: in `.editorconfig`: ``` init roslynator_use_var = when_type_is_obvious ``` Code: ``` csharp internal class Demo { public static string StringBuilderDemo(List...
Please add analyzer similar to Resharper's "Method can be made static". There is Microsoft analyzer CA1822 but it will show warning even for methods that aren't private.
Documentation does not exist for roslynator_blank_line_between_closing_brace_and_switch_section. In fact, there are 0 search results on Google and DuckDuckGo, but I can see that the config is being used in the codebase....
May I request a feature that removes unnecessary array declarations in a params parameter? For example in the following context ```csharp static class Program { static void M() { Sum(new...
**Product and Version Used**: 4.12.2 **Steps to Reproduce**: The following code produces an RCS0029 warning, but doesn't highlight any code: ``` internal class Dummy { public Dummy() : base() {...
All of my projects use `DateTime.UtcNow` instead of `DateTime.Now`. It'd be great to see an analyzer to help enforce this.
Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3. Commits 74b2db2 3.0.3 88f1429 update eslint. lint, fix unit tests. 415d660 Snyk js braces 6838727 (#40) 190510f fix tests, skip 1 test in test/braces.expand...
**Product and Version Used**: Roslynator.Analyzers 4.12.3 **Steps to Reproduce**: Have a class such as below: ```csharp public class Create where TEntity : Common ``` And a usage of the class...