From 900a21008cc1284e9bc30a6f322a739cff9b503f Mon Sep 17 00:00:00 2001 From: Thomas Boerger Date: Fri, 25 Nov 2016 09:12:06 +0100 Subject: [PATCH] Added errcheck make task (#242) --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index a33d54ca2..51ba3758c 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 \