roslynator
roslynator copied to clipboard
Roslynator is a set of code analysis tools for C#, powered by Roslyn.
**Product and Version Used**: ``` all runtime; build; native; contentfiles; analyzers; buildtransitive all runtime; build; native; contentfiles; analyzers; buildtransitive ``` **Steps to Reproduce**: Create variable with string concatenation in multiple...
Is it possible to check records for field types that lack a customised Equals override, or that use reference equality? These fields can cause subtle bugs, and I’m not aware...
**Product and Version Used**: dotnet 7, Roslynator.Analyzers 4.5.0 **Steps to Reproduce**: The following code, in top level statements: ```csharp builder.Services .AddMyServices(builder.Configuration) .AddHangfire(config => config .UseSimpleAssemblyNameTypeSerializer() .UseRecommendedSerializerSettings() .UseInMemoryStorage()) .AddHangfireServer(); ``` Gives...
**Product and Version Used**: Roslynator CLI 0.6.1.0 with Roslynator Analyzer 4.4.0 **Steps to Reproduce**: Add the following to .editorconfig: ``` dotnet_diagnostic.rcs0056.severity = error roslynator_max_line_length = 120 ``` Run `roslynator fix`...
**Product and Version Used**: VS 17.7.0 Roslynator 4.4.0 When reading through the analyzer docs (https://josefpihrt.github.io/docs/roslynator/analyzers) and determining which ones are relevant (and deciding on their severity), how do we know...
When converting some syntax (e.g. if-else) to conditional expression, prefer to wrap `?` and `:` on a new line.
**Product and Version Used**: 4.3.0 **Before**: ```csharp class C { void M(bool p, bool q, bool r) { if (r) // Invoke "Invert if (recursively)" here { if (p) {...
A very useful refactor would be to refactor logger.LogDebug() into the performance optimized LoggerMessageAttribute method. Reference: * https://learn.microsoft.com/en-us/dotnet/core/extensions/logger-message-generator * https://learn.microsoft.com/en-us/dotnet/core/extensions/high-performance-logging **Before Refactor**: ```csharp public class Program { private readonly ILogger...
I didn't find any more information, can someone tell me?
**Product and Version Used**: I am try to fix IDExxxx code analysis rules. However when I try to run `Roslynator.Dotnet.Cli -fix` and I give the path to the visual studio...