aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar John Belamaric <jbelamaric@infoblox.com> 2017-05-05 15:33:18 -0400
committerGravatar GitHub <noreply@github.com> 2017-05-05 15:33:18 -0400
commitafec8963c62cc362729ba53c9f081f6d744cf51c (patch)
tree56576fc8000d8187c3d71e11f9cbec2c49d14f8d /Makefile
parentb7dd1559c1ac66218331bda51c354fbe212b492e (diff)
downloadcoredns-afec8963c62cc362729ba53c9f081f6d744cf51c.tar.gz
coredns-afec8963c62cc362729ba53c9f081f6d744cf51c.tar.zst
coredns-afec8963c62cc362729ba53c9f081f6d744cf51c.zip
Don't check vendor code for gofmt, it takes forever (#661)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1701fab1f..880983dcc 100644
--- a/Makefile
+++ b/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