1
0
mirror of https://github.com/rancher/os.git synced 2025-06-25 22:41:36 +00:00

Enable scripts/validate without golint

This commit is contained in:
Josh Curl 2016-09-15 16:52:06 -07:00
parent b65e429bb6
commit 1da9a19951
No known key found for this signature in database
GPG Key ID: 82B504B9BCCFA677
2 changed files with 7 additions and 7 deletions

View File

@ -5,7 +5,7 @@ cd $(dirname $0)
./build ./build
./test ./test
#./validate ./validate
./prepare ./prepare
./package ./package
./integration-test ./integration-test

View File

@ -9,12 +9,12 @@ PACKAGES=". $(find -name '*.go' | xargs -I{} dirname {} | cut -f2 -d/ | sort -u
echo Running: go vet echo Running: go vet
go vet ${PACKAGES} go vet ${PACKAGES}
echo Running: golint #echo Running: golint
for i in ${PACKAGES}; do #for i in ${PACKAGES}; do
if [ -n "$(golint $i | grep -v 'should have comment.*or be unexported' | tee /dev/stderr)" ]; then # if [ -n "$(golint $i | grep -v 'should have comment.*or be unexported' | tee /dev/stderr)" ]; then
failed=true # failed=true
fi # fi
done #done
test -z "$failed" test -z "$failed"
echo Running: go fmt echo Running: go fmt
test -z "$(go fmt ${PACKAGES} | tee /dev/stderr)" test -z "$(go fmt ${PACKAGES} | tee /dev/stderr)"