Makefile: add make golangci-lint rule for running golangci-lint run; updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/69

This commit is contained in:
Aliaksandr Valialkin 2019-06-20 14:30:55 +03:00
parent 4b2523fb40
commit 45fc8cb72f

View file

@ -74,3 +74,10 @@ quicktemplate-gen: install-qtc
install-qtc: install-qtc:
which qtc || GO111MODULE=off go get -u github.com/valyala/quicktemplate/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