From 21db8383c622d2890f56c9ceefcc8b66a7589035 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Wed, 21 Oct 2020 09:59:02 +0200 Subject: [PATCH] Adding server lint check --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index 3a1f9d70a..49f4c7e91 100644 --- a/Makefile +++ b/Makefile @@ -20,6 +20,13 @@ generate: cd server; go get -modfile=go.tools.mod github.com/jteeuwen/go-bindata cd server; go generate ./... +server-lint: + @if ! [ -x "$$(command -v golangci-lint)" ]; then \ + echo "golangci-lint is not installed. Please see https://github.com/golangci/golangci-lint#install for installation instructions."; \ + exit 1; \ + fi; \ + cd server; golangci-lint run ./... + watch-server: cd server; modd