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 a few whitespace enforcing IDE rules #40769

Closed
wants to merge 1 commit into from

Conversation

pranavkm
Copy link
Contributor

Contributes to #24055

@ghost ghost added the community-contribution Indicates that the PR has been added by a community member label Mar 18, 2022
@pranavkm pranavkm force-pushed the ide200x branch 4 times, most recently from fd41325 to 46f2267 Compare March 18, 2022 16:04
@mkArtakMSFT mkArtakMSFT added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label Mar 18, 2022
@davidfowl
Copy link
Member

Whitespace rules? Is this gonna break the build for extra whitespace?

@pranavkm
Copy link
Contributor Author

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.

# 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
Copy link
Member

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.

Comment on lines +58 to +61
# 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
Copy link
Member

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.

@pranavkm pranavkm closed this Mar 20, 2022
@pranavkm pranavkm deleted the ide200x branch March 20, 2022 00:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants