-
-
Notifications
You must be signed in to change notification settings - Fork 265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RCS1019 IDE0036 Inconsistency #427
Comments
I use C# Language Specification 5.0 (page 307) as a reference for this analyzer. Changing the order of modifiers would be a breaking change. |
I have a similar issue: I've read C# Language Specification 5.0 (page 307), and nowhere does it speak about the order of modifiers, it merely list them in no particular order and gives some rules about them.
I understand changing this could be somewhat annoying to users (but these exotic combinations of modifiers are quite rare so it shouldn't raise many location of code to fix), but I wouldn't consider it a 'breaking change' as it wouldn't break existing code. |
@josefpihrt How do I disable an IDExxxx warning in VSCode? |
@marcospgp Either in ruleset file:
or in editorconfig:
https://docs.microsoft.com/en-us/visualstudio/code-quality/use-roslyn-analyzers?view=vs-2019 |
I believe I tried using the ruleset file and it didn't work. I ended up adding the rule to the |
This issue is still a thing with |
I am having the same IDE0036 consistency issue as @mcflux. Roslynator should provide (documented) configuration so that we can solve this without disabling an analyzer. |
If I use the recommended editorconfig settings concerning modifier order at: https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-code-style-settings-reference#example-editorconfig-file
Reviewing the following code: RCS1019 wants new to come before public, IDE0036 wants new to come after public.
Is this by design or should RCS1019 be changed to match Microsoft's IDE0036 default recommendation?
The text was updated successfully, but these errors were encountered: