Skip to content

Commit

Permalink
chore: added sonar-project.properties file and adapted codecov settin…
Browse files Browse the repository at this point in the history
…gs (#989)

Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
  • Loading branch information
bacherfl committed Mar 9, 2023
1 parent 85e9d0e commit ca1c6ba
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
8 changes: 8 additions & 0 deletions .sonarcloud.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
sonar.projectKey=keptn_lifecycle-toolkit
sonar.projectName=lifecycle-toolkit

sonar.cpd.exclusions=**/test_*.go,\
scheduler/test/e2e/fake/**/*.go,\
operator/apis/lifecycle/v1alpha1/*.go,\
operator/apis/lifecycle/v1alpha2/*.go,\
metrics-operator/api/v1alpha1/*.go
13 changes: 7 additions & 6 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ coverage:
threshold: 1% # allow patch

ignore:
- "**/*.yaml" # ignore all yaml files (Kubernetes manifests, etc...)
- "**/*.yml" # same as above
- "**/*.md" # ignore all markdown files, those are not relevant for building/testing
- "**/Dockerfile" # ignore Dockerfiles, those are build with GH Actions
- "**/*.sh" # ignore shell scripts
- "**/test_utils.go" # test utils don't need to be covered
- "**/*.yaml" # ignore all yaml files (Kubernetes manifests, etc...)
- "**/*.yml" # same as above
- "**/*.md" # ignore all markdown files, those are not relevant for building/testing
- "**/Dockerfile" # ignore Dockerfiles, those are build with GH Actions
- "**/*.sh" # ignore shell scripts
- "**/test_utils.go" # test utils don't need to be covered
- "**/zz_generated.deepcopy.go" # auto-generated deepcopy files for CRD structs

comment:
layout: "diff, files, flags"
Expand Down

0 comments on commit ca1c6ba

Please sign in to comment.