diff options
author | 2017-05-05 15:33:18 -0400 | |
---|---|---|
committer | 2017-05-05 15:33:18 -0400 | |
commit | afec8963c62cc362729ba53c9f081f6d744cf51c (patch) | |
tree | 56576fc8000d8187c3d71e11f9cbec2c49d14f8d /Makefile | |
parent | b7dd1559c1ac66218331bda51c354fbe212b492e (diff) | |
download | coredns-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-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |