From 71cdf8a7663b43cb039752e884b980f263e168db Mon Sep 17 00:00:00 2001 From: Thom Lamb Date: Tue, 26 May 2026 09:32:02 -0500 Subject: [PATCH] chore(sonar)!: pluralize unused [Flags] enums (S2342) S2342 requires [Flags] enums to use plural names. Both enums have zero references anywhere in the repo today. - ConstraintType -> ConstraintTypes - TriggerType -> TriggerTypes BREAKING CHANGE: external NuGet consumers (if any) referencing these singular-named types will need to update to the plural names. Internal codebase has no references. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../Enums/SQL/{ConstraintType.cs => ConstraintTypes.cs} | 3 +-- .../Enums/SQL/{TriggerType.cs => TriggerTypes.cs} | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) rename src/Strata.SqlTools.SqlBreakdown/Enums/SQL/{ConstraintType.cs => ConstraintTypes.cs} (95%) rename src/Strata.SqlTools.SqlBreakdown/Enums/SQL/{TriggerType.cs => TriggerTypes.cs} (94%) diff --git a/src/Strata.SqlTools.SqlBreakdown/Enums/SQL/ConstraintType.cs b/src/Strata.SqlTools.SqlBreakdown/Enums/SQL/ConstraintTypes.cs similarity index 95% rename from src/Strata.SqlTools.SqlBreakdown/Enums/SQL/ConstraintType.cs rename to src/Strata.SqlTools.SqlBreakdown/Enums/SQL/ConstraintTypes.cs index 8f3bdd8..6707981 100644 --- a/src/Strata.SqlTools.SqlBreakdown/Enums/SQL/ConstraintType.cs +++ b/src/Strata.SqlTools.SqlBreakdown/Enums/SQL/ConstraintTypes.cs @@ -4,7 +4,7 @@ namespace Strata.SqlTools.SqlBreakdown.Enums.SQL; /// Specifies the type of SQL constraint. /// [Flags] -public enum ConstraintType +public enum ConstraintTypes { /// /// Default value constraint. @@ -36,4 +36,3 @@ public enum ConstraintType /// All = 31 } - diff --git a/src/Strata.SqlTools.SqlBreakdown/Enums/SQL/TriggerType.cs b/src/Strata.SqlTools.SqlBreakdown/Enums/SQL/TriggerTypes.cs similarity index 94% rename from src/Strata.SqlTools.SqlBreakdown/Enums/SQL/TriggerType.cs rename to src/Strata.SqlTools.SqlBreakdown/Enums/SQL/TriggerTypes.cs index 06b9e69..85357ce 100644 --- a/src/Strata.SqlTools.SqlBreakdown/Enums/SQL/TriggerType.cs +++ b/src/Strata.SqlTools.SqlBreakdown/Enums/SQL/TriggerTypes.cs @@ -4,7 +4,7 @@ namespace Strata.SqlTools.SqlBreakdown.Enums.SQL; /// Specifies the type of SQL trigger. /// [Flags] -public enum TriggerType +public enum TriggerTypes { /// /// Trigger fires after the action. @@ -21,4 +21,3 @@ public enum TriggerType /// Both = 3 } -