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:
parent
b65e429bb6
commit
1da9a19951
@ -5,7 +5,7 @@ cd $(dirname $0)
|
||||
|
||||
./build
|
||||
./test
|
||||
#./validate
|
||||
./validate
|
||||
./prepare
|
||||
./package
|
||||
./integration-test
|
||||
|
@ -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)"
|
||||
|
Loading…
Reference in New Issue
Block a user