Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime Martinez <jmartinez@gitlab.com>2020-05-22 07:40:50 +0300
committerJaime Martinez <jmartinez@gitlab.com>2020-05-28 04:11:11 +0300
commitfebba427ebf268ac498f0eda09d5f9818ff2bf10 (patch)
tree92e910953ba6d2a0bbd091ce538db7650503ab78 /Makefile.build.mk
parent9051ec94f18b67f4729da2a432591785643bd785 (diff)
Add lint and lint-docker rules to Makefile
Remove references to ./bin/golint, ./bin/gocycle and remove _support/ directory. Add formatting rule to .golangci.yml for goimports and local imports.
Diffstat (limited to 'Makefile.build.mk')
-rw-r--r--Makefile.build.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile.build.mk b/Makefile.build.mk
index 9a40f68b..b203cf4f 100644
--- a/Makefile.build.mk
+++ b/Makefile.build.mk
@@ -1,3 +1,5 @@
+GOLANGCI_LINT_VERSION := v1.25.1 # version used by $GOLANGCI_LINT_IMAGE
+
.PHONY: all setup generate-mocks build clean
all: gitlab-pages
@@ -5,6 +7,7 @@ all: gitlab-pages
setup: clean .GOPATH/.ok
go get github.com/wadey/gocovmerge@v0.0.0-20160331181800-b5bfa59ec0ad
go get github.com/golang/mock/mockgen@v1.3.1
+ go get github.com/golangci/golangci-lint/cmd/golangci-lint@$(GOLANGCI_LINT_VERSION)
generate-mocks: .GOPATH/.ok
$Q bin/mockgen -source=internal/interface.go -destination=internal/mocks/mocks.go -package=mocks