Add go vet check (#430)

* Add go vet check

* Replace go vet with go tool vet to avoid printing exit message
This commit is contained in:
Ta-Ching Chen
2018-01-22 09:28:16 -08:00
committed by Soam Vasani
parent db372c11eb
commit 8df520721c
6 changed files with 21 additions and 5 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
find_files() {
find . -not \( \
\( \
-wholename '*/vendor/*' \
\) -prune \
\) -name '*.go'
}
find_files | grep -v '.glide/cache' | xargs -I@ bash -c "go tool vet @"