forked from kptdev/kpt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsonar.properties
More file actions
24 lines (18 loc) · 1008 Bytes
/
Copy pathsonar.properties
File metadata and controls
24 lines (18 loc) · 1008 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Required metadata
sonar.projectKey=kptdev_kpt
sonar.projectName=kpt
sonar.organization=kptdev
sonar.language=go
# Path to your Go source code
# Includes all relevant source directories, excluding vendor and thirdparty
sonar.sources=commands,pkg,run,api/fnresult,api/kptfile,api/resourcegroup,api/schema
# Exclude files if needed
sonar.exclusions=**/test/**, **/examples/*, **/scripts/*, **/*_test.go, **/testing*, **/generated/**, **/testdata/**, **/*zz_generated.*, vendor/**, thirdparty/**, .github/**, documentation/**, Formula/**
# To include test coverage reports
sonar.test.inclusions=**/*_test.go
sonar.coverage.exclusions=**/test/**,**/*_test.go,**/testing/*,**/generated/**,**/*zz_generated.*,pkg/test/**,internal/**
# Coverage and test report paths
sonar.go.tests.reportPaths=report.xml
sonar.go.coverage.reportPaths=coverage.out
# To exclude duplicated blocks from CPD (Copy-Paste Detection)
sonar.cpd.exclusions=**/*_test.go, **/test/**, **/testing**, **/generated/**, **/*zz_generated.*