From 1da9a199510e52f8001ba7b7c566bb89c5cb4f2d Mon Sep 17 00:00:00 2001 From: Josh Curl Date: Thu, 15 Sep 2016 16:52:06 -0700 Subject: [PATCH] Enable scripts/validate without golint --- scripts/ci | 2 +- scripts/validate | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/ci b/scripts/ci index 4f83609d..655fcbcc 100755 --- a/scripts/ci +++ b/scripts/ci @@ -5,7 +5,7 @@ cd $(dirname $0) ./build ./test -#./validate +./validate ./prepare ./package ./integration-test diff --git a/scripts/validate b/scripts/validate index 17f8372e..9bd48c41 100755 --- a/scripts/validate +++ b/scripts/validate @@ -9,12 +9,12 @@ PACKAGES=". $(find -name '*.go' | xargs -I{} dirname {} | cut -f2 -d/ | sort -u echo Running: go vet go vet ${PACKAGES} -echo Running: golint -for i in ${PACKAGES}; do - if [ -n "$(golint $i | grep -v 'should have comment.*or be unexported' | tee /dev/stderr)" ]; then - failed=true - fi -done +#echo Running: golint +#for i in ${PACKAGES}; do +# if [ -n "$(golint $i | grep -v 'should have comment.*or be unexported' | tee /dev/stderr)" ]; then +# failed=true +# fi +#done test -z "$failed" echo Running: go fmt test -z "$(go fmt ${PACKAGES} | tee /dev/stderr)"