-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Enable a few whitespace enforcing IDE rules #40769
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
Conversation
fd41325
to
46f2267
Compare
Whitespace rules? Is this gonna break the build for extra whitespace? |
There are a couple of rules in the repo that already enforce some of these:
This is adding some additional formatting clauses around whitespace that the roslyn repo uses. |
Contributes to dotnet#24055
# Whitespace options | ||
csharp_style_allow_embedded_statements_on_same_line_experimental = false | ||
csharp_style_allow_blank_lines_between_consecutive_braces_experimental = false | ||
csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental = false |
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.
I don't know if @dotnet/aspdoi has discussed these settings but this particular one is actively annoying and I'd much rather we didn't take it.
# Whitespace options | ||
csharp_style_allow_embedded_statements_on_same_line_experimental = false | ||
csharp_style_allow_blank_lines_between_consecutive_braces_experimental = false | ||
csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental = false |
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.
In general, we should wait until experimental features have been released for real before incorporating them in this repo. There's no reason to rush here.
I'd go further there and say we're in the weeds here; #24055 was about FxCop, not StyleCop, and certainly not teensy whitespace rules.
Contributes to #24055