Repository navigation
Expand file tree
/
Copy path.sonarcloud.properties
More file actions
30 lines (25 loc) · 1.68 KB
/
Copy path.sonarcloud.properties
File metadata and controls
30 lines (25 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# add test files to analysis scope
sonar.sources = .
sonar.tests= .
# Include test subdirectories in test scope
sonar.test.inclusions = e2e-tests/**/*, **/*.test.*
# Exclude test and CI infrastructure from source scope
# The setup action is excluded for githubactions:S6505 ("Lifecycle scripts are
# enabled by default in Yarn v2+") on its root `yarn install`. The rule's fix
# breaks the build: the cluster-free harness backend runs on better-sqlite3,
# which declares `install: prebuild-install || node-gyp rebuild` and ships no
# prebuilt binary, so with scripts disabled there is no native binding and the
# backend cannot boot. That line is also the pre-existing install this PR only
# moved into a composite action. Scoped to the one file rather than .github/**,
# which would leave the workflows unscanned (CodeQL here only runs javascript).
sonar.exclusions = e2e-tests/**/*, .ci/**/*, **/*.test.*, .github/actions/setup-cluster-free-harness/action.yaml
# 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,e2e-tests/playwright/e2e/audit-log/LogUtils.ts
# TODO remove this when 1.9 is EOL
sonar.issue.ignore.multicriteria=e1,e2
sonar.issue.ignore.multicriteria.e1.ruleKey=docker:S8431
# ignore .rhdh/docker/Dockerfile and docker/Dockerfile from the 1.9 branch
sonar.issue.ignore.multicriteria.e1.resourceKey=**/docker/Dockerfile
# ignore containerfiles in 1.10+
sonar.issue.ignore.multicriteria.e2.ruleKey=docker:S8431
sonar.issue.ignore.multicriteria.e2.resourceKey=**/Containerfile