Skip to content

Commit

Permalink
feat(gometalinter): Move to versioned releases
Browse files Browse the repository at this point in the history
gometalinter has moved to versioned releases. The latest of the v1
major versioned releases can be retrieved through pkg.in. This
change moves gometalinter use to the latest v1 release.
  • Loading branch information
mattfarina committed Nov 15, 2016
1 parent 915769b commit d2fa039
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/validate-go.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ set -euo pipefail

exit_code=0

if ! hash gometalinter 2>/dev/null ; then
go get github.com/alecthomas/gometalinter
gometalinter --install
if ! hash gometalinter.v1 2>/dev/null ; then
go get -u gopkg.in/alecthomas/gometalinter.v1
gometalinter.v1 --install
fi

echo
echo "==> Running static validations <=="
# Run linters that should return errors
gometalinter \
gometalinter.v1 \
--disable-all \
--enable deadcode \
--severity deadcode:error \
Expand All @@ -42,7 +42,7 @@ gometalinter \
echo
echo "==> Running linters <=="
# Run linters that should return warnings
gometalinter \
gometalinter.v1 \
--disable-all \
--enable golint \
--vendor \
Expand Down

0 comments on commit d2fa039

Please sign in to comment.