roslynator
roslynator copied to clipboard
Add analyzer similar to Resharper's "Method can be made static"
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.
This one is useful indeed, please add it.
It is possible to configure CA1822 so that public methods don't trigger it. Simply add dotnet_code_quality.CA1822.api_surface = private, internal to the .editorconfig file in your solution.
Source