From dec2bdf89f21c81599f6fb46507af1f808278a0a Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Thu, 20 Jun 2019 14:30:55 +0300 Subject: [PATCH] Makefile: add `make golangci-lint` rule for running `golangci-lint run`; updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/69 --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index fadb254a5e..64afbe7fb4 100644 --- a/Makefile +++ b/Makefile @@ -78,3 +78,10 @@ quicktemplate-gen: install-qtc install-qtc: which qtc || GO111MODULE=off go get -u github.com/valyala/quicktemplate/qtc + + +golangci-lint: install-golangci-lint + golangci-lint run + +install-golangci-lint: + which golangci-lint || GO111MODULE=off go get -u github.com/golangci/golangci-lint/cmd/golangci-lint