Skip to content
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

Merged
merged 9 commits into from
Oct 31, 2023

Conversation

artl93
Copy link
Member

@artl93 artl93 commented Oct 27, 2023

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.

@dotnet-issue-labeler dotnet-issue-labeler bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Oct 27, 2023
@ghost ghost assigned artl93 Oct 27, 2023
Copy link
Member

@danmoseley danmoseley left a 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

@danmoseley
Copy link
Member

Btw it's good to mention whether cleanup was done by hand or with a fixer, as the latter hopefully needs less careful eyeballing...

@danmoseley danmoseley added area-Meta and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Oct 29, 2023
@ghost
Copy link

ghost commented Oct 29, 2023

Tagging subscribers to this area: @dotnet/area-meta
See info in area-owners.md if you want to be subscribed.

Issue Details

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.

Author: artl93
Assignees: artl93
Labels:

area-Meta

Milestone: -

Copy link
Member

@stephentoub stephentoub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@artl93 artl93 marked this pull request as ready for review October 30, 2023 21:24
@marek-safar marek-safar merged commit 9c579f9 into dotnet:main Oct 31, 2023
189 of 191 checks passed
@danmoseley
Copy link
Member

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.

@artl93 artl93 deleted the clean-up-enum-styles branch November 16, 2023 04:10
@github-actions github-actions bot locked and limited conversation to collaborators Dec 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SA1136: Enum values should be on separate lines
4 participants