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.internal.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.internal.mk')
-rw-r--r--Makefile.internal.mk14
1 files changed, 5 insertions, 9 deletions
diff --git a/Makefile.internal.mk b/Makefile.internal.mk
index e7d0e8fe..a33634fd 100644
--- a/Makefile.internal.mk
+++ b/Makefile.internal.mk
@@ -34,16 +34,12 @@ Q := $(if $V,,@)
$Q ln -s ../bin .GOPATH/bin
$Q touch $@
-.PHONY: bin/gocovmerge bin/goimports bin/gocyclo bin/golint
+.PHONY: bin/gocovmerge bin/golangci-lint
bin/gocovmerge: .GOPATH/.ok
@test -x $@ || \
{ echo "Vendored gocovmerge not found, try running 'make setup'..."; exit 1; }
-bin/gocyclo: .GOPATH/.ok
- @test -x $@ || \
- { echo "Vendored gocyclo not found, try running 'make setup'..."; exit 1; }
-bin/goimports: .GOPATH/.ok
- @test -x $@ || \
- { echo "Vendored goimports not found, try running 'make setup'..."; exit 1; }
-bin/golint: .GOPATH/.ok
+
+bin/golangci-lint: .GOPATH/.ok
@test -x $@ || \
- { echo "Vendored golint not found, try running 'make setup'..."; exit 1; }
+ { echo "Vendored golangci-lint not found, try running 'make setup'..."; exit 1; }
+