Skip to content

Commit

Permalink
APIGOV-26268 - sonar
Browse files Browse the repository at this point in the history
  • Loading branch information
dfeldickgit committed Oct 20, 2023
1 parent de161b9 commit 10ebf71
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 34 deletions.
17 changes: 6 additions & 11 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@ variables:
GIT_TAG_PREFIX: v

include:
- project: "apigov/gitlabci"
ref: master
file: "/.gitlab-ci-sonar.yml"
- project: "apigov/beano_cicd"
ref: $BEANO_CICD_LATEST
ref: APIGOV-26268
# the order of these include files is important
file:
- "/gitlabci/variables.yml"
Expand Down Expand Up @@ -47,7 +50,8 @@ include:

stages:
- test
- sonar
- sonar-preview
- sonar-publish
- security-scans
- security-review

Expand Down Expand Up @@ -142,12 +146,3 @@ twistlock:
twistlock:on-schedule:
rules:
- !reference [.only-never-rule, rules]

###################
# These overridden from jobs.xml to never run
###################
test:
extends: .only-never

error-check:
extends: .only-never
1 change: 0 additions & 1 deletion CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ whitesource.config @dfeldick
# cicd-related files
.gitlab-ci.yml @dfeldick @jcollins-axway @vivekschauhan
Makefile @dfeldick @jcollins-axway @vivekschauhan
sonar.sh @dfeldick @jcollins-axway @vivekschauhan
build/scripts/ @dfeldick @jcollins-axway @vivekschauhan
.github/** @dfeldick @jcollins-axway @vivekschauhan

Expand Down
3 changes: 0 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,3 @@ docker-build-traceability:
test-sonar:
@go vet ${GO_PKG_LIST}
@go test -v -short -coverpkg=./... -coverprofile=./gocoverage.out -count=1 ${GO_PKG_LIST} -json > ./goreport.json

sonar: test-sonar
./sonar.sh
14 changes: 14 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
sonar.projectName=Mulesoft_Agents
sonar.projectVersion=1.0
sonar.projectKey=Mulesoft_Agents
sonar.language=go
sonar.sourceEncoding=UTF-8
sonar.projectBaseDir=.
sonar.sources=.
sonar.exclusions=**/*test*.go,**/build/**/*,**/deployment/**
sonar.tests=.
sonar.test.inclusions=**/*test*.go
sonar.go.tests.reportPaths=goreport.json
sonar.go.coverage.reportPaths=gocoverage.out
sonar.issuesReport.console.enable=true
sonar.report.export.path=sonar-report.json
19 changes: 0 additions & 19 deletions sonar.sh

This file was deleted.

0 comments on commit 10ebf71

Please sign in to comment.