Skip to content

Commit 62935e6

Browse files
nanotaboadaclaude
andcommitted
chore(sonar): harden exclusions for generated and fixture code (#435)
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 8f33bc3 commit 62935e6

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

sonar-project.properties

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ sonar.test.inclusions=test/**/*.cs
2828
sonar.exclusions=\
2929
**/obj/**,\
3030
**/bin/**,\
31-
**/Migrations/**
31+
**/Migrations/**,\
32+
**/*.Designer.cs
3233

3334
# =============================================================================
3435
# Coverage exclusions
@@ -39,7 +40,8 @@ sonar.exclusions=\
3940
sonar.coverage.exclusions=\
4041
test/**/*.cs,\
4142
**/Migrations/**,\
42-
**/Data/PlayerDbContext.cs
43+
**/Data/PlayerDbContext.cs,\
44+
**/Program.cs
4345

4446
# =============================================================================
4547
# Duplicate code (CPD) exclusions
@@ -59,6 +61,10 @@ sonar.coverage.exclusions=\
5961
# design; similarity between arrange/act/assert blocks across tests is
6062
# expected and harmless.
6163
#
64+
# **/Utilities/PlayerData.cs — parallel WithId/without-Id method pairs
65+
# (MakeStarting11/MakeStarting11WithId, GetSubstitutes/GetSubstitutesWithId)
66+
# mirror each other by design; duplication is structural, not accidental.
67+
#
6268
# **/Validators/PlayerRequestModelValidator.cs — the "Create" and "Update"
6369
# rule sets share common rules by design; the duplication is intentional to
6470
# keep each operation's validation self-contained and readable.
@@ -68,4 +74,5 @@ sonar.cpd.exclusions=\
6874
**/Migrations/**,\
6975
**/Data/PlayerDbContext.cs,\
7076
test/**/*.cs,\
77+
**/Utilities/PlayerData.cs,\
7178
**/Validators/PlayerRequestModelValidator.cs

0 commit comments

Comments
 (0)