mirror of https://github.com/BTCPrivate/lnd.git
gotest: use stable version of metalinter
This commit is contained in:
parent
9dfaca1632
commit
5d434839a4
11
gotest.sh
11
gotest.sh
|
@ -85,15 +85,18 @@ lint_check() {
|
||||||
print "* Run static checks"
|
print "* Run static checks"
|
||||||
|
|
||||||
# Make sure gometalinter is installed and $GOPATH/bin is in your path.
|
# Make sure gometalinter is installed and $GOPATH/bin is in your path.
|
||||||
if [ ! -x "$(type -p gometalinter)" ]; then
|
if [ ! -x "$(type -p gometalinter.v1)" ]; then
|
||||||
print "** Install gometalinter"
|
print "** Install gometalinter"
|
||||||
go get -v github.com/alecthomas/gometalinter
|
go get -u gopkg.in/alecthomas/gometalinter.v1
|
||||||
gometalinter --install
|
gometalinter.v1 --install
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Update metalinter if needed.
|
||||||
|
gometalinter.v1 --install 1>/dev/null
|
||||||
|
|
||||||
# Automatic checks
|
# Automatic checks
|
||||||
linter_targets=$(glide novendor | grep -v lnrpc)
|
linter_targets=$(glide novendor | grep -v lnrpc)
|
||||||
test -z "$(gometalinter --disable-all \
|
test -z "$(gometalinter.v1 --disable-all \
|
||||||
--enable=gofmt \
|
--enable=gofmt \
|
||||||
--enable=vet \
|
--enable=vet \
|
||||||
--enable=golint \
|
--enable=golint \
|
||||||
|
|
Loading…
Reference in New Issue