Skip to content

Commit dc13e99

Browse files
Configure Sonar to exclude tests and examples from duplicate code checks
1 parent c448c75 commit dc13e99

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

sonar-project.properties

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# SonarQube properties
2+
sonar.projectKey=nhsuk-react-components
3+
sonar.organization=nhsdigital
4+
5+
# Project language
6+
sonar.language=js
7+
8+
# Encoding of the source code. Default is default system encoding
9+
sonar.sourceEncoding=UTF-8
10+
11+
# Adding the coverage analysis parameter
12+
sonar.javascript.lcov.reportPaths=coverage/lcov.info
13+
14+
sonar.sources=src
15+
sonar.exclusions=**/*.test.*
16+
sonar.tests=src
17+
sonar.test.inclusions=**/*.test.*
18+
sonar.cpd.exclusions=**/*.stories.*,**/*.test.*

0 commit comments

Comments
 (0)