From 13045e3d984674be0f9bdec478049eb4a8415648 Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Tue, 11 Jan 2022 12:17:26 -0800 Subject: [PATCH] Use staticcheck in drone --- .drone.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 5a4de5c..2c4a583 100644 --- a/.drone.yml +++ b/.drone.yml @@ -10,10 +10,11 @@ pipeline: event: [ push, pull_request ] image: golang commands: + - go install honnef.co/go/tools/cmd/staticcheck@latest - wget https://git.openprivacy.ca/openprivacy/buildfiles/raw/master/tor/tor -P tmp/ - chmod a+x tmp/tor - go mod download - - go get -u golang.org/x/lint/golint + - go get -u quality: when: repo: openprivacy/connectivity @@ -21,8 +22,7 @@ pipeline: event: [ push, pull_request ] image: golang commands: - - go list ./... | xargs go vet - - go list ./... | xargs golint -set_exit_status + - staticcheck ./... units-tests: when: repo: openprivacy/connectivity