summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index a33d54ca21..51ba3758c5 100644
--- a/Makefile
+++ b/Makefile
@@ -51,6 +51,13 @@ fmt:
vet:
go vet $(PACKAGES)
+.PHONY: errcheck
+errcheck:
+ @which errcheck > /dev/null; if [ $$? -ne 0 ]; then \
+ go get -u github.com/kisielk/errcheck; \
+ fi
+ errcheck $(PACKAGES)
+
.PHONY: lint
lint:
@which golint > /dev/null; if [ $$? -ne 0 ]; then \