From 08878c59b26c5fcda09ce8ee806191354ad82582 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Fri, 1 May 2020 13:12:36 +0100 Subject: [PATCH] Update pre-commit hook --- hooks/pre-commit | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/hooks/pre-commit b/hooks/pre-commit index bb0a27f..bbbede0 100755 --- a/hooks/pre-commit +++ b/hooks/pre-commit @@ -2,9 +2,6 @@ set -eu -golint -misspell --error . - # gofmt doesn't exit with an error code if the files don't match the expected # format. So we have to run it and see if it outputs anything. if gofmt -l -s . 2>&1 | read @@ -18,9 +15,5 @@ then exit 1 fi -ineffassign . - -go fmt -go tool vet --all --shadow . -gocyclo -over 12 . -go test -timeout 5s -test.v +golangci-lint run +go test -timeout 5s . ./...