mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
fix make lint (#694)
This commit is contained in:
committed by
Miek Gieben
parent
381ec9d7f8
commit
a4eea61190
3
Makefile
3
Makefile
@@ -58,7 +58,8 @@ fmt:
|
|||||||
.PHONY: lint
|
.PHONY: lint
|
||||||
lint: deps
|
lint: deps
|
||||||
## run go lint, suggestion only (not enforced)
|
## run go lint, suggestion only (not enforced)
|
||||||
@test -z "$$(golint ./... | grep -v vendor/ | grep -v ".pb.go:" | grep -vE "context\.Context should be the first parameter of a function" | tee /dev/stderr)"
|
@test -z "$$(find . -type d | grep -vE '(/vendor|^\.$$|/.git|/.travis)' | grep -vE '(^\./pb)' | xargs golint \
|
||||||
|
| grep -vE "context\.Context should be the first parameter of a function" | tee /dev/stderr)"
|
||||||
|
|
||||||
.PHONY: distclean
|
.PHONY: distclean
|
||||||
distclean: clean
|
distclean: clean
|
||||||
|
|||||||
Reference in New Issue
Block a user