Use staticcheck in drone
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
Sarah Jamie Lewis 2022-01-11 12:17:26 -08:00
parent 8a56f02fc5
commit 13045e3d98
1 changed files with 3 additions and 3 deletions

View File

@ -10,10 +10,11 @@ pipeline:
event: [ push, pull_request ] event: [ push, pull_request ]
image: golang image: golang
commands: commands:
- go install honnef.co/go/tools/cmd/staticcheck@latest
- wget https://git.openprivacy.ca/openprivacy/buildfiles/raw/master/tor/tor -P tmp/ - wget https://git.openprivacy.ca/openprivacy/buildfiles/raw/master/tor/tor -P tmp/
- chmod a+x tmp/tor - chmod a+x tmp/tor
- go mod download - go mod download
- go get -u golang.org/x/lint/golint - go get -u
quality: quality:
when: when:
repo: openprivacy/connectivity repo: openprivacy/connectivity
@ -21,8 +22,7 @@ pipeline:
event: [ push, pull_request ] event: [ push, pull_request ]
image: golang image: golang
commands: commands:
- go list ./... | xargs go vet - staticcheck ./...
- go list ./... | xargs golint -set_exit_status
units-tests: units-tests:
when: when:
repo: openprivacy/connectivity repo: openprivacy/connectivity