Skip to content

Commit

Permalink
added sonar-properties file to skip tests from sonar analysis (#1544)
Browse files Browse the repository at this point in the history
* added sonar-properties file

* sonarqube: exclude testdata, added infosec as codeowner
  • Loading branch information
nasir-rabbani authored Mar 17, 2023
1 parent 32cbc36 commit ef2c91d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@
/pkg/ @tenable/terrascan-maintainers

/pkg/policies/opa/rego/ @tenable/terrascan-policy-maintainers
/sonar-project.properties @tenable/infosec
5 changes: 5 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
sonar.sources=.
sonar.exclusions=**/*_test.go,**/vendor/**,**/testdata/**
sonar.tests=.
sonar.test.inclusions=**/*_test.go
sonar.test.exclusions=**/vendor/**,**/testdata/**

0 comments on commit ef2c91d

Please sign in to comment.