From 45fc8cb72f04da907a7b9af98184fc9727fb6480 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 d6a2d0614..69565c964 100644 --- a/Makefile +++ b/Makefile @@ -74,3 +74,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