added in static code analysis tools

This commit is contained in:
Tessa Nordgren 2022-02-18 12:07:31 -08:00
parent b0b8ac2d5b
commit 714462c36f

View File

@ -3,9 +3,18 @@ kind: pipeline
name: default name: default
steps: steps:
- name: gosec security analysis
image: securego/gosec
commands:
- gosec ./...
- name: staticcheck analysis
image: golang
commands:
- go install honnef.co/go/tools/cmd/staticcheck
- "$(go env GOPATH)/bin/staticcheck"
- name: build, test and benchmark - name: build, test and benchmark
image: golang image: golang
commands: commands:
- go build -race
- go test - go test
- go test -bench=. - go test -bench=.
- go build