dotnet / roslynator

Roslynator is a set of code analysis tools for C#, powered by Roslyn.

Home Page:https://josefpihrt.github.io/docs/roslynator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`RCS1019` does not work for `file static`

RenderMichael opened this issue · comments

Product and Version Used:

4.10.0

Steps to Reproduce:

file static class C
{
}

Actual Behavior:
Diagnostic RCS1019: Order modifiers

Apply fixer:

static file class C
{
}

Expected Behavior:
No warning

Additional context:

My .editorconfig file contains the following line:

csharp_preferred_modifier_order = public,private,protected,internal,file,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,required,volatile,async:suggestion

It was covered up by this error but I'm noticing it's also emitting RCS1018: Add accessibility modifiers