-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
New Editorconfig UX does not use the correct syntax for updating severity of IDE code style #52720
Comments
Tagging @vatsalyaagrawal - I believe this a very critical issue and should be addressed asap. Editorconfig UX and |
Duplicate of #52694 |
Thanks @Youssef1313. Agreed that technically it is duplicate. However, I still want to retain this issue as it seems we added a duplicate severity/options configuration component for Editorconfig UX, instead of re-using the one used for |
…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
Version Used:
Steps to Reproduce:
Change the severity of any code style option, say null propagation in the new editorconfig UX (say bump it to a warning)
Expected Behavior:
Generated editorconfig uses
dotnet_diagnostic
syntax for severity specification:Actual Behavior:
Generated syntax above is deprecated for severity specification, as the severity suffix is not respected on command line builds. Please see the
Severity
section under https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/language-rules#option-format and he discussion in #44201 for details.@jmarolf As mentioned in #44201 (comment), the editorconfig UX should use the severity specification syntax that works for both in IDE and command line, but the current behavior only works in the IDE. ConfigurationUpdater component that is used in

Configure Severity
light bulb action already does this the correct way, and also adds a useful comment header:I was really hoping we re-used the same
ConfigurationUpdater
component for severity/option changes in the editorconfig file from the editorconfig UX to avoid such inconsistencies. Did we end up rewriting a completely new component for updating editorconfig in the editorconfig UX?The text was updated successfully, but these errors were encountered: