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

Ensure that StructuredAnalyzerConfigOptions contain the diagnostic severity configuration key-values #66497

Closed

Conversation

mavasani
Copy link
Contributor

Existing DiagnosticDescriptorExtensions helper methods rely on these key-value pairs being part of the project analyzer config options, and they seem to have been broken by recent code refactoring that added StructuredAnalyzerConfigOptions. I am also adding a new GetEffectiveSeverity extension method, which is needed by #58835.

…verity configuration key-values

Existing DiagnosticDescriptorExtensions helper methods rely on these key-value pairs being part of the project analyzer config options, and they seem to have been broken by recent code refactoring that added StructuredAnalyzerConfigOptions. I am also adding a new GetEffectiveSeverity extension method, which is needed by dotnet#58835
@mavasani
Copy link
Contributor Author

Turns out even the compiler layer does not provide diagnostic severity configuration key-values to the analyzers, so the existing implementation and usages of GetEffectiveSeverity is buggy. I'll open a separate PR to fix those.

@mavasani mavasani closed this Jan 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant