Skip to content

Latest commit

 

History

History
46 lines (33 loc) · 688 Bytes

RCS1018.md

File metadata and controls

46 lines (33 loc) · 688 Bytes

RCS1018: Add accessibility modifiers (or vice versa)

Property Value
Id RCS1018
Category Readability
Severity Info

Example

Code with Diagnostic

class Foo // RCS1018
{
    void Bar() // RCS1018
    {
    }
}

Code with Fix

internal class Foo
{
    private void Bar()
    {
    }
}

Options

Remove accessibility modifiers

roslynator.RCS1018.invert = true

See Also

(Generated with DotMarkdown)