From cc750494b3a19c5db5adeb1065c34cef7725b2fa Mon Sep 17 00:00:00 2001 From: Christian Claus Date: Mon, 9 Apr 2018 13:18:34 +0200 Subject: [PATCH] Add Makefile to make checks with vet and golint --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..6ba410a --- /dev/null +++ b/Makefile @@ -0,0 +1,10 @@ +.PHONY: fmt check + +SRC = $(shell find . -type f -name '*.go' -not -path "./vendor/*") + +fmt: + @gofmt -s -l -w $(SRC) + +check: + @for i in $$(go list ./... | grep -v /vendor/); do golint $${i}; done + @go tool vet ${SRC}