Skip to content

Commit

Permalink
Skip sonar analysis for test.go file (fluid-cloudnative#2754)
Browse files Browse the repository at this point in the history
* Skip sonar analysis for test.go file

Signed-off-by: cheyang <[email protected]>

* Skip sonar analysis for test.go file

Signed-off-by: cheyang <[email protected]>

---------

Signed-off-by: cheyang <[email protected]>
  • Loading branch information
cheyang authored Mar 20, 2023
1 parent 0c62a0c commit b8870fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ sonar.host.url=https://sonarcloud.io

# Exclude following set of patterns from coverage analysis
sonar.coverage.exclusions=**/vendor/**,**/*_test.go,tests/**,docs/**
sonar.exclusions=**/*test.go,**/vendor/**

# Exclude following set of patterns from code analysis
sonar.go.exclusions=**/vendor/**,**/*_test.go,docs/**

# Exclude following set of patterns from duplication detection
sonar.cpd.exclusions=docs/**
sonar.cpd.exclusions=docs/**,docs-new/**,**/*test.go,**/vendor/**

0 comments on commit b8870fb

Please sign in to comment.