From b29b5c9d31fe859769ea43c6407eda2b8eeac31b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20St=C3=BChmer?= Date: Thu, 29 Oct 2026 03:07:24 +0100 Subject: [PATCH] fix(analyzer): remove ExcludeFromCodeCoverage so Stryker mutates analyzers Stryker drops every mutant in types carrying [ExcludeFromCodeCoverage] ("Removed by exclude from code coverage filter"), so all NED/OLD analyzer logic was invisible to mutation testing. 25 tests already exercise both classes. --- .../Diagnostics/IsPackableProjectDiagnosticAnalyzer.cs | 2 -- .../Diagnostics/OldProjectSupportDiagnosticAnalyzer.cs | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/NetEvolve.Defaults.Analyzer/Diagnostics/IsPackableProjectDiagnosticAnalyzer.cs b/src/NetEvolve.Defaults.Analyzer/Diagnostics/IsPackableProjectDiagnosticAnalyzer.cs index d509d9a..c6b7d23 100644 --- a/src/NetEvolve.Defaults.Analyzer/Diagnostics/IsPackableProjectDiagnosticAnalyzer.cs +++ b/src/NetEvolve.Defaults.Analyzer/Diagnostics/IsPackableProjectDiagnosticAnalyzer.cs @@ -3,13 +3,11 @@ using System; using System.Collections.Immutable; using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; using System.Globalization; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Diagnostics; [DiagnosticAnalyzer(LanguageNames.CSharp)] -[ExcludeFromCodeCoverage] internal sealed class IsPackableProjectDiagnosticAnalyzer : DiagnosticAnalyzer { internal static readonly DiagnosticDescriptor _ruleNED0001 = Helper.CreateUsageDescriptor( diff --git a/src/NetEvolve.Defaults.Analyzer/Diagnostics/OldProjectSupportDiagnosticAnalyzer.cs b/src/NetEvolve.Defaults.Analyzer/Diagnostics/OldProjectSupportDiagnosticAnalyzer.cs index a1c5246..30dfed5 100644 --- a/src/NetEvolve.Defaults.Analyzer/Diagnostics/OldProjectSupportDiagnosticAnalyzer.cs +++ b/src/NetEvolve.Defaults.Analyzer/Diagnostics/OldProjectSupportDiagnosticAnalyzer.cs @@ -2,12 +2,10 @@ using System.Collections.Immutable; using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Diagnostics; [DiagnosticAnalyzer(LanguageNames.CSharp)] -[ExcludeFromCodeCoverage] internal sealed class OldProjectSupportDiagnosticAnalyzer : DiagnosticAnalyzer { internal static readonly DiagnosticDescriptor _ruleOLD0001 = Helper.CreateUsageDescriptor(