roslynator
roslynator copied to clipboard
Roslynator is a set of code analysis tools for C#, powered by Roslyn.
**Product and Version Used**: Roslynator 2.1.0 (with Microsoft Visual Studio Community 2017 (15.9.11) ) **Steps to Reproduce**: In a Unity3D Project I create/open a file containing a class that inherits...
**Product and Version Used**: Roslynator Analyzers (New as-of 2.1.0) **Before** ```csharp Person person = // ... call that obtains a Person that could be null DoSomething( person?.FirstName, //
Consider: ``` object locker = new object(); void LockedAction() { lock (locker) { // ... do something requiring locking... } } ``` But any code can reassign the value of...
Some of the refactorings in Roslynator repeat already existing ones. I can imagine how much effort it would be but I think Roslynator should be reviewed after each released VS...
RCS1097 isn't flagged on ```address.ToString()```. Is this a false negative? ```csharp using System.Net; using System.Text; namespace RCS1097_False_Negative { static class Class { static void M(IPAddress[] ipaddressarray) { StringBuilder addressList =...
Since the `string.Format` method allows for an arbitrary number of format arguments it also accepts 0. However in case one provides zero arguments this is likely a mistake: string.Format("some-text here")...
Hello, Nice extensions. Is here any plan to support rename namespace by folder structure? Thanks
In some case the `String.Compare` where the result is checked for equality to zero could be replaced with `String.Equals`. At least the variants that take `string, string`: ``` String.Compare(a, b)...
Hello, I'm starting to move an old full framework code to .NET standard 2.0 I created a new project, added one class to this project, now i'm trying to add...
At times I move class files between folders, It would be great if I could update the namespace to reflect the directory structure the file is placed in. I would...