1
0
mirror of https://github.com/rancher/os.git synced 2025-06-25 14:31:33 +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
./test
#./validate
./validate
./prepare
./package
./integration-test

View File

@ -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)"