StyleCop / StyleCop.ReSharper

Official ReSharper extension for StyleCop
163 stars 29 forks source link

"Fix StyleCop violations" removes "using static" #38

Open gustav-dahl opened 3 years ago

gustav-dahl commented 3 years ago

When i run Cleanup Code with Fix StyleCop violations enabled all using static directives are converted into normal using directives, resulting in compile errors.

namespace MyNamespace
{
    using static ClassWithStaticMethods;

becomes

namespace MyNamespace
{
    using ClassWithStaticMethods;
gustav-dahl commented 3 years ago

Some info:

JetBrains ReSharper 2020.2.4 Build 202.0.20200925.65451 built on 2020-09-25
ReSharper 2020.2.20200928.101135
StyleCop by JetBrains 2020.2.2