Skip to content

Commit 78d85d4

Browse files
kim-tsaojosephca
andauthored
chore(test): specify analysis scope in sonarcloud.properties (redhat-developer#1970)
Signed-off-by: Kim Tsao <[email protected]> Co-authored-by: Joseph Kim <[email protected]>
1 parent 56d6cc4 commit 78d85d4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.sonarcloud.properties

+7
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,9 @@
1+
# everything in this repo falls under source analysis
2+
sonar.sources = .
3+
# exclude all tests and fixtures from source analysis
4+
sonar.exclusions = e2e-tests/**/*, **/*.test.*, **/__fixtures__/*,
5+
# apply test scope analysis to e2e tests and unit tests
6+
sonar.tests = e2e-tests/**/*, **/*.test.*
7+
18
# comma delimited path of files to exclude from copy/paste duplicate checking
29
sonar.cpd.exclusions=packages/app/src/components/DynamicRoot/DynamicRoot.test.tsx,packages/app/src/components/admin/AdminTabs.test.tsx,packages/app/src/components/catalog/EntityPage/defaultTabs.tsx,plugins/dynamic-plugins-info/src/components/InternalPluginsMap.tsx,e2e-tests/playwright/e2e/audit-log/LogUtils.ts

0 commit comments

Comments
 (0)