Skip to content

Commit

Permalink
Exclude generated code from SonarCloud scans (#1945)
Browse files Browse the repository at this point in the history
  • Loading branch information
hariso authored Nov 7, 2024
1 parent a60c36a commit 9a216a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
8 changes: 0 additions & 8 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
run:
timeout: 3m

output:
formats:
- format: colored-line-number
path: stdout
# Needed for the SonarCloud analysis
- format: checkstyle
path: golangci-report.xml

linters-settings:
depguard:
rules:
Expand Down
5 changes: 2 additions & 3 deletions sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ sonar.organization=conduitio
sonar.projectName=Conduit

sonar.sources=.
sonar.exclusions=**/*_test.go,**/vendor/**,**/ui/**
sonar.exclusions=**/mock_*.go,**/mock/**,**/*_test.go,**/vendor/**,**/ui/**,**/proto/**,pkg/plugin/processor/builtin/internal/diff/**,**/acceptance_testing.go,**/standalone/test/**,**/swagger-ui/**

sonar.tests=.
sonar.test.inclusions=**/*_test.go
sonar.test.exclusions=**/vendor/**
Expand All @@ -26,6 +26,5 @@ sonar.links.issue=https://github.com/ConduitIO/conduit/issues
# Properties specific to Go
# =====================================================

sonar.go.gometalinter.reportPaths=golangci-report.xml
sonar.go.tests.reportPaths=test-report.out
sonar.go.coverage.reportPaths=coverage.out

0 comments on commit 9a216a4

Please sign in to comment.