Skip to content

Commit a2ac0b5

Browse files
committed
fix(sonar): exclude test files from duplication checking
Test code intentionally contains similar patterns for comprehensive coverage. SonarCloud's CPD (Copy-Paste Detection) should not flag test file duplication.
1 parent b470c5f commit a2ac0b5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sonar-project.properties

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ sonar.organization=sunet
99
sonar.sources=.
1010
sonar.exclusions=vendor/**,**/testdata/**
1111

12+
# Exclude test files from duplication detection
13+
# Test code intentionally contains similar patterns for comprehensive coverage
14+
sonar.cpd.exclusions=**/*_test.go
15+
1216
# Go-specific settings
1317
sonar.go.coverage.reportPaths=coverage.out,didcomm_coverage.out
1418

0 commit comments

Comments
 (0)