@@ -28,7 +28,8 @@ sonar.test.inclusions=test/**/*.cs
2828sonar.exclusions =\
2929 **/obj/**,\
3030 **/bin/**,\
31- **/Migrations/**
31+ **/Migrations/**,\
32+ **/*.Designer.cs
3233
3334# =============================================================================
3435# Coverage exclusions
@@ -39,23 +40,39 @@ sonar.exclusions=\
3940sonar.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
4648# NOTE: // NOSONAR suppresses rule-based issues (bugs, code smells, security
4749# hotspots) but has no effect on CPD metrics. Files must be listed here to be
4850# excluded from duplicate code detection.
4951#
52+ # **/Migrations/** — EF Core migration files are intentionally repetitive
53+ # (sequential InsertData/UpdateData/Sql calls); must be listed explicitly
54+ # here even though already present in sonar.exclusions, as CPD is evaluated
55+ # independently of the global exclusion list.
56+ #
57+ # **/Data/PlayerDbContext.cs — scaffolded EF Core infrastructure; excluded
58+ # from coverage metrics above for the same reason.
59+ #
5060# test/**/*.cs — Fakes, Mocks, and Stubs are intentionally repetitive by
5161# design; similarity between arrange/act/assert blocks across tests is
5262# expected and harmless.
5363#
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+ #
5468# **/Validators/PlayerRequestModelValidator.cs — the "Create" and "Update"
5569# rule sets share common rules by design; the duplication is intentional to
5670# keep each operation's validation self-contained and readable.
5771# =============================================================================
5872
5973sonar.cpd.exclusions =\
74+ **/Migrations/**,\
75+ **/Data/PlayerDbContext.cs,\
6076 test/**/*.cs,\
77+ **/Utilities/PlayerData.cs,\
6178 **/Validators/PlayerRequestModelValidator.cs
0 commit comments