-
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
Use EnableCodeStyleSeverity instead of AnalysisLevel to control new diagnostic severity behavior #73843
Conversation
If I understand this PR correctly then these documentation pages need to be updated for the change, correct? |
Yes, those would need to be updated. We'll also need to update the SDK code style build targets to feed the new build property to the compiler. |
@@ -20,17 +20,6 @@ namespace Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.UseObjectInitializer; | |||
[Trait(Traits.Feature, Traits.Features.CodeActionsUseObjectInitializer)] | |||
public partial class UseObjectInitializerTests | |||
{ | |||
private static async Task TestInRegularAndScriptAsync(string testCode, string fixedCode, OutputKind outputKind = OutputKind.DynamicallyLinkedLibrary) |
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.
Why did this change produce so much churn in the object init tests?
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.
This analyzer was using an old strategy for code fading that was interfering with some new testing we needed for the feature change. I converted the analyzer to the new style as a separate commit at the beginning of this PR.
…iagnostic severity behavior
4c1d490
to
7cbb1f4
Compare
Rebased after reviews completed to apply the fixup commit. |
EnableCodeStyleSeverity
instead ofAnalysisLevel
to control new diagnostic severity behaviorFollow-up to #72238