Hi, I integrated sonarqube v.9.5 with golang 1.18, all was running as expected. but I got weird things. I don’t configure an sonar.exclusions
but always got result exclusion unit test from source. My goal is, I want analyze unit test file to detect smell code and others rules from sonarqube. is that posisble?
result
INFO: Project configuration:
INFO: Included sources: **
INFO: Excluded sources: **/*_test.go
INFO: Included tests: **/*_test.go
INFO: Excluded sources for coverage: **/*_test.go
sonar.project.properties
sonar.projectKey=${PROJECTKEY}
sonar.sources=.
sonar.inclusions=**
sonar.tests=.
sonar.test.inclusions=**/*_test.go
sonar.coverage.exclusions=**/*_test.go
sonar.go.exclusions=**/vendor/**,**/*_mock.go
sonar.go.tests.reportPaths=go-test-report.out
sonar.go.coverage.reportPaths=go-coverage.out
sonar.go.golangci-lint.reportPaths=golangci-report.out