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

Removing rule severity for a category of analyzer rules + switching some rules from dotnet_diagnostic syntax #106

Merged
merged 5 commits into from Mar 24, 2024

Conversation

TalZaccai
Copy link
Contributor

So it turns out that severity of specific "dotnet_diagnostic" style rules take precedence over severity of category of analyzer rules BUT severity of category of analyzer rules takes precedence over dotnet_style_ / csharp_style_ rules.
More about this here.
So in essence, any specified severity in dotnet_style_ / csharp_style_ rules is effectively ignored and marked as "error".
I think then the "appropriate" way to do this is to remove the category severity of error, and run "dotnet format --verify-no-changes" in the CI to make sure that current formatting follows the rules.
LMK if you have any comments.

@Rsdgsc
Copy link

Rsdgsc commented Mar 23, 2024

111

@TalZaccai TalZaccai merged commit f9e62df into main Mar 24, 2024
9 checks passed
@TalZaccai TalZaccai deleted the talzacc/editorconfig_fix_new branch March 24, 2024 19:06
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.

None yet

3 participants