Skip to content

Commit 407e587

Browse files
committed
chore: exclude test files from SonarCloud security hotspot analysis
- Add sonar.security.hotspots.exclusions configuration - Prevents false positive security warnings on mock URLs in tests - Test files already excluded from main analysis via sonar.exclusions
1 parent 9c220b1 commit 407e587

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sonar-project.properties

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ sonar.exclusions=\
2020
**/*.spec.js,\
2121
**/__tests__/**
2222

23+
# Exclude test files from security hotspot analysis
24+
sonar.security.hotspots.exclusions=\
25+
**/__tests__/**,\
26+
**/*.test.js,\
27+
**/*.spec.js
28+
2329
# JavaScript/TypeScript settings
2430
sonar.javascript.lcov.reportPaths=coverage/lcov.info
2531

0 commit comments

Comments
 (0)