alertmanager/vendor/github.com/weaveworks/mesh/lint

23 lines
515 B
Plaintext
Raw Normal View History

2016-06-02 18:01:47 +00:00
#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
if [ ! $(command -v gometalinter) ]
then
go get github.com/alecthomas/gometalinter
2017-05-09 13:03:27 +00:00
gometalinter --install --vendor
2016-06-02 18:01:47 +00:00
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 \
2017-05-09 13:03:27 +00:00
--disable=gas \
2016-06-02 18:01:47 +00:00
--cyclo-over=20 \
--tests \
2017-05-09 13:03:27 +00:00
--deadline=20s