@ -17,15 +17,15 @@ set -euo pipefail
exit_code = 0
exit_code = 0
if ! hash gometalinter 2>/dev/null ; then
if ! hash gometalinter.v1 2>/dev/null ; then
go get github.com/alecthomas/gometalinter
go get -u gopkg.in/alecthomas/gometalinter.v1
gometalinter --install
gometalinter.v1 --install
fi
fi
echo
echo
echo "==> Running static validations <=="
echo "==> Running static validations <=="
# Run linters that should return errors
# Run linters that should return errors
gometalinter \
gometalinter.v1 \
--disable-all \
--disable-all \
--enable deadcode \
--enable deadcode \
--severity deadcode:error \
--severity deadcode:error \
@ -42,7 +42,7 @@ gometalinter \
echo
echo
echo "==> Running linters <=="
echo "==> Running linters <=="
# Run linters that should return warnings
# Run linters that should return warnings
gometalinter \
gometalinter.v1 \
--disable-all \
--disable-all \
--enable golint \
--enable golint \
--vendor \
--vendor \