Skip to content

Move severity settings to globalconfig - #431

Merged
Sergio0694 merged 4 commits into
Sergio0694:mainfrom
Youssef1313:patch-1
Nov 18, 2022
Merged

Sergio0694 merged 4 commits into
Sergio0694:mainfrom
Youssef1313:patch-1

Conversation

@Youssef1313

Copy link
Copy Markdown
Contributor

See dotnet/roslyn#65274 (comment) for why globalconfig is better.

@Sergio0694 Sergio0694 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Nice!! 🎉

Question, do nested .editorconfig files still override what's in .globalconfig? Because I have some custom rules for the files forked by TerraFX, which don't follow the same rules as the rest of the repo, but I don't want to change those so I can minimize changes with upstream. I guess the CI will validate this for us too... 🤔

@Youssef1313

Copy link
Copy Markdown
Contributor Author

Nice!! 🎉

Question, do nested .editorconfig files still override what's in .globalconfig? Because I have some custom rules for the files forked by TerraFX, which don't follow the same rules as the rest of the repo, but I don't want to change those so I can minimize changes with upstream. I guess the CI will validate this for us too... 🤔

Yes, the nested .editorconfig will override what is in .globalconfig.

In fact, you are already using globalconfigs, those that come from CodeStyle package when you specify AnalysisLevel in Directory.Build.props:

image

The precedence is also documented here

@Youssef1313 Youssef1313 changed the title Set IDE0036 to warning and move severity settings to globalconfig Move severity settings to globalconfig Nov 18, 2022

@Sergio0694 Sergio0694 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

LGTM, thank you! 😄

@Sergio0694
Sergio0694 merged commit 33b525b into Sergio0694:main Nov 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants