mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
Don't check vendor code for gofmt, it takes forever (#661)
This commit is contained in:
2
Makefile
2
Makefile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user