Navigation Menu

Skip to content

Commit

Permalink
Update to newer tool golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
bboreham committed Oct 11, 2019
1 parent 2bcf5d1 commit 1a857c8
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions lint
Expand Up @@ -4,19 +4,10 @@ set -o errexit
set -o nounset
set -o pipefail

if [ ! $(command -v gometalinter) ]
if [ ! $(command -v golangci-lint) ]
then
go get github.com/alecthomas/gometalinter
gometalinter --install --vendor
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin v1.20.0
golangci-lint --version
fi

gometalinter \
--exclude='error return value not checked.*(Close|Log|Print).*\(errcheck\)$' \
--exclude='.*_test\.go:.*error return value not checked.*\(errcheck\)$' \
--exclude='duplicate of.*_test.go.*\(dupl\)$' \
--disable=aligncheck \
--disable=gotype \
--disable=gas \
--cyclo-over=20 \
--tests \
--deadline=20s
golangci-lint run

0 comments on commit 1a857c8

Please sign in to comment.