-
Notifications
You must be signed in to change notification settings - Fork 510
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
update ordering diagnostics to proper StyleCop order #1128
Conversation
@oatkins Can you review the tests included in this for accuracy? |
The tests look good. It looks as though we have a large block of correctly ordered code that is used in the tests for multiple rules. Perhaps this could be refactored into a common location? It also seems to be missing a nested static class, for completeness. I'm going to merge this branch into the version I'll use on my machine today, so I should find any remaining gremlins pretty quickly. |
Good catch. I'll get those added. Looks like the diagnostic messages should be updated on 1203, 1204, 1214, and 1215. They don't include the access level and could be misleading. |
@@ -0,0 +1,26 @@ | |||
namespace StyleCop.Analyzers.OrderingRules |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Consider moving this to StyleCop.Analyzers.Helpers
.
👍 |
Originally found in 1204. The also applies to 1202, 1203, 1214, and 1215. 1215 was updated to match the diagnostic location style of the other diagnostic rules.
fixes #1123