-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Enable SA1136: Enum values should be on separate lines #94098 #94100
Conversation
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.
Source changes look good, I defer to others on whether it would be info or warning and whether should include tests
src/libraries/System.Diagnostics.Tracing/tests/BasicEventSourceTest/TestsWrite.cs
Outdated
Show resolved
Hide resolved
Btw it's good to mention whether cleanup was done by hand or with a fixer, as the latter hopefully needs less careful eyeballing... |
Tagging subscribers to this area: @dotnet/area-meta Issue DetailsFixes #94098, enabling another style rule. Includes a couple places where the rule does not make sense, but otherwise, this includes all the code clean-up as well. Style updates were done by hand.
|
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.
LGTM
BTW, we often put a comma on the last enum entry, to reduce diffs when adding to the enum. I didn't suggest that because it didn't seem that important. But maybe if there was a fixer for this, it should do that. |
Fixes #94098, enabling another style rule.
Includes a couple places where the rule does not make sense, but otherwise, this includes all the code clean-up as well.
Style updates were done by hand.