Update Makefile and add git pre-push hook (#1382)

This commit is contained in:
Ta-Ching Chen
2019-11-06 13:13:48 +08:00
committed by GitHub
parent 9272f0cb2c
commit 4b456db517
5 changed files with 41 additions and 28 deletions
+1 -1
View File
@@ -4,4 +4,4 @@ set -o errexit
set -o nounset
set -o pipefail
go vet -v $(go list ./...| grep -v vendor)
go vet -v $(go list ./...| grep -v "vendor" | grep -v "examples" | grep -v "demos" | grep -v "test")
+1 -3
View File
@@ -4,6 +4,4 @@ set -o errexit
set -o nounset
set -o pipefail
ROOT=`realpath $(dirname $0)/..`
go list ./...| grep -v vendor | grep -v "examples" | grep -v "demos" | xargs -I@ staticcheck @
go list ./...| grep -v vendor | grep -v "examples" | grep -v "demos" | grep -v "test" | xargs -I@ staticcheck @