forked from redhat-developer/rhdh-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.sonarcloud.properties
More file actions
17 lines (14 loc) · 849 Bytes
/
Copy path.sonarcloud.properties
File metadata and controls
17 lines (14 loc) · 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# add test files to analysis scope
sonar.sources = .
sonar.tests= .
# Include test subdirectories in test scope
sonar.test.inclusions = tests/**/*, integration_tests/**/*, **/*_test.go, **/testdata/**/*
# Exclude test subdirectories from source scope.
# Also drop the operator Dockerfiles: docker:S8431 flags FROM image:tag@sha256:...
# which is the pinDigest form Konflux and "Validate Image Digests" require.
# Dockerfile parsers reject NOSONAR, and sonar.issue.ignore.multicriteria is
# ignored by SonarCloud Automatic Analysis (redhat-developer/rhdh#4967).
# sonar.exclusions is honoured. Hadolint still lints these files.
sonar.exclusions = tests/**/*, integration_tests/**/*, **/*_test.go, **/zz_generated.deepcopy.go, **/testdata/**/*, Dockerfile, .rhdh/docker/Dockerfile
# Exclude api from duplication metric
sonar.cpd.exclusions=api/**