roslynator
roslynator copied to clipboard
Roslynator is a set of code analysis tools for C#, powered by Roslyn.
As per the title, when using a generic OrderedDictionary and calling the First() method, the RCS 1246 warning "Use Element Access" appears, even though the generic OrderedDictionary does not offer...
I believe this issue was fixed at some point, but it seems to be back with Roslynator 2022 v4.12..9 and Visual Studio 2022 v17.12.3. ``` StreamJsonRpc.RemoteInvocationException: Argument contains duplicate analyzer...
With .NET 8,Microsoft has finally delivered a unified abstraction for dealing with DateTime stuff in a controlled and mockable way. **TimeProvider** should be suggested as a replace for the direct...
CAN BE MERGED ONLY AFTER https://github.com/dotnet/roslynator/pull/1643 is merged in and the branch is merged with updated main branch. The PR contains: The PR is one of the PRs I would...
```sh techn0@IO ~/source/AzureDevOps.WikiPdfExport pr dotnet clean Build succeeded in 0,5s techn0@IO ~/source/AzureDevOps.WikiPdfExport pr ± dotnet restore Restore complete (0,4s) Build succeeded in...
https://josefpihrt.github.io/docs/roslynator/cli/ It doesn't mention that .NET 9.0 is supported, which confused me.
 Seen here for newtonsoft JObject resulting in invalid syntax.
```xml net9.0 Enable Latest false Latest All ``` `dotnet build` works, but `roslynator analyze` fails with: ``` Analyze 'redacted' 1/2 No analyzers found to analyze 'redacted' error CS5001: Program does...
```cs var thing1 = new MyType ("foo", new ArgThing("bar")); ``` can be refactored to with RCS1250 ```cs MyType thing1 = new("foo", new ArgThing("bar")); ``` But I want to take mine...
Hi team, When enforcing naming conventions using Roslyn analyzers (e.g., through Directory.Build.props or editorconfig), it's common to encounter many IDE1006 warnings (naming rule violations) — especially now that we're increasingly...