Skip to content

Commit

Permalink
chore(test): specify analysis scope in sonarcloud.properties (#1970)
Browse files Browse the repository at this point in the history
Signed-off-by: Kim Tsao <[email protected]>
Co-authored-by: Joseph Kim <[email protected]>
  • Loading branch information
kim-tsao and josephca authored Nov 21, 2024
1 parent 56d6cc4 commit 78d85d4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .sonarcloud.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
# everything in this repo falls under source analysis
sonar.sources = .
# exclude all tests and fixtures from source analysis
sonar.exclusions = e2e-tests/**/*, **/*.test.*, **/__fixtures__/*,
# apply test scope analysis to e2e tests and unit tests
sonar.tests = e2e-tests/**/*, **/*.test.*

# comma delimited path of files to exclude from copy/paste duplicate checking
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 comments on commit 78d85d4

Please sign in to comment.