From 9961c8ea5388a165c0b9c70659edde7a66753499 Mon Sep 17 00:00:00 2001 From: Youssef Victor Date: Mon, 18 Nov 2024 21:39:53 +0100 Subject: [PATCH] Enable UseProperAssertMethodsAnalyzer by default (#4076) --- src/Analyzers/MSTest.Analyzers/AnalyzerReleases.Unshipped.md | 2 +- .../MSTest.Analyzers/UseProperAssertMethodsAnalyzer.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Analyzers/MSTest.Analyzers/AnalyzerReleases.Unshipped.md b/src/Analyzers/MSTest.Analyzers/AnalyzerReleases.Unshipped.md index 238002c32..1f7da0db7 100644 --- a/src/Analyzers/MSTest.Analyzers/AnalyzerReleases.Unshipped.md +++ b/src/Analyzers/MSTest.Analyzers/AnalyzerReleases.Unshipped.md @@ -5,4 +5,4 @@ Rule ID | Category | Severity | Notes --------|----------|----------|------- -MSTEST0037 | `Usage` | Disabled | UseProperAssertMethodsAnalyzer +MSTEST0037 | `Usage` | Info | UseProperAssertMethodsAnalyzer diff --git a/src/Analyzers/MSTest.Analyzers/UseProperAssertMethodsAnalyzer.cs b/src/Analyzers/MSTest.Analyzers/UseProperAssertMethodsAnalyzer.cs index c32a8e776..223400bc5 100644 --- a/src/Analyzers/MSTest.Analyzers/UseProperAssertMethodsAnalyzer.cs +++ b/src/Analyzers/MSTest.Analyzers/UseProperAssertMethodsAnalyzer.cs @@ -63,7 +63,7 @@ internal sealed class UseProperAssertMethodsAnalyzer : DiagnosticAnalyzer null, Category.Usage, DiagnosticSeverity.Info, - isEnabledByDefault: false); + isEnabledByDefault: true); public override ImmutableArray SupportedDiagnostics { get; } = ImmutableArray.Create(Rule);