Commit afec8963 authored by John Belamaric's avatar John Belamaric Committed by GitHub

Don't check vendor code for gofmt, it takes forever (#661)

parent b7dd1559
......@@ -52,7 +52,7 @@ gen:
.PHONY: fmt
fmt:
## run go fmt
@test -z "$$(gofmt -s -l . | grep -v vendor/ | tee /dev/stderr)" || \
@test -z "$$(find . -type d | grep -vE '(/vendor|^\.$$|/.git|/.travis)' | xargs gofmt -s -l | tee /dev/stderr)" || \
(echo "please format Go code with 'gofmt -s -w'" && false)
.PHONY: lint
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment