-
Notifications
You must be signed in to change notification settings - Fork 4k
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
IDE change to handle /warnaserror with Warning analyzer bulk configur… #58461
Conversation
…ation in editorconfig Underlying issue: dotnet#55541 Corresponding batch compiler fix: dotnet#58460 This change fixes the code that computes effective severity for Analyzers node. We also need to update the code that computes effective severity for EditorConfig UX, I will file a separate issue for the same. NOTE: We have dotnet#52720 to track avoiding code duplication for computing effective severity between EditorConfig UX and other parts of the IDE
FYI @jmarolf - I'll file an issue for this and assign it to you. I couldn't figure out a trivial fix to thread in CompilationOptions into the below methods used for EditorConfig UX: Lines 53 to 135 in bf84ccf
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the scenario described by #55541, the Analyzers node and the EditorConfig UX should both show Warning as the effective severity. During build or live analysis, the diagnostics reported for these analyzers should appear in the build output and error list as Error severity. The different values shown in these locations is intentional and desired.
@sharwell Can we take this to design meeting and confirm with the team? |
Thanks @mavasani. I have a plan for unifying this so I’ll take care of the plumbing there. My general intuition is that the editorconfig ui should be a representation of the file itself. So of the file shows it as a warning I would expect it to display as one. We should do something here though. We could at least hint to the developer that warn-as-error is active in some build configurations |
I agree with both your stance. I’ll close out this PR for now. |
…ation in editorconfig
Underlying issue: #55541
Corresponding batch compiler fix: #58460
This change fixes the code that computes effective severity for Analyzers node. We also need to update the code that computes effective severity for EditorConfig UX, I will file a separate issue for the same.
NOTE: We have #52720 to track avoiding code duplication for computing effective severity between EditorConfig UX and other parts of the IDE