summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorThomas Boerger <thomas@webhippie.de>2016-11-25 09:12:06 +0100
committerLunny Xiao <xiaolunwen@gmail.com>2016-11-25 16:12:06 +0800
commit900a21008cc1284e9bc30a6f322a739cff9b503f (patch)
tree307b8b3ea720e5e35f02aaac3e2974344076af8c /Makefile
parentc0ca6644ade5ce21d8c7601439d94ea1fed7443d (diff)
downloadgitea-900a21008cc1284e9bc30a6f322a739cff9b503f.tar.gz
gitea-900a21008cc1284e9bc30a6f322a739cff9b503f.zip
Added errcheck make task (#242)
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 \