Skip to content

Small fixes to configure rule severity section #20779

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

Merged
merged 7 commits into from
Sep 25, 2020

Conversation

mavasani
Copy link
Contributor

dotnet_diagnostic and dotnet_analyzer_diagnostic prefixes are only used for configuring rule severities that are respected by the compiler. Non-severity editorconfig options are defined and respected by each analyzer package themselves, so we cannot control the key format for these options.

`dotnet_diagnostic` and `dotnet_analyzer_diagnostic` prefixes are only used for configuring rule severities that are respected by the compiler. Non-severity editorconfig options are defined and respected by each analyzer package themselves, so we cannot control the key format for these options.
@mavasani mavasani requested a review from gewarren September 25, 2020 13:57
@mavasani mavasani requested a review from a team as a code owner September 25, 2020 13:57
@dotnet-bot dotnet-bot added this to the September 2020 milestone Sep 25, 2020
Copy link
Contributor

@gewarren gewarren left a comment

Choose a reason for hiding this comment

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

I thought the individual/category/all rule syntax was generic to more than just severity.

Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
mavasani and others added 2 commits September 25, 2020 08:49
Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
Copy link
Contributor

@gewarren gewarren left a comment

Choose a reason for hiding this comment

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

Should we move the precedence section out from under severity if it applies more generally? E.g. does it apply to the code quality rules too?

@mavasani
Copy link
Contributor Author

Should we move the precedence section out from under severity if it applies more generally? E.g. does it apply to the code quality rules too?

Nope, that is specific to the severity precedence rules enforced by the compiler. Compiler cannot enforce generic option precedence settings, those are up to each analyzer package/assembly to enforce.

@gewarren gewarren merged commit a30ed55 into dotnet:master Sep 25, 2020
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.

3 participants