Use golangci-lint instead of gometalinter

This commit is contained in:
wpetit 2018-09-20 17:52:50 +02:00
parent f67724dc3a
commit 2c7aad91c6
1 changed files with 4 additions and 3 deletions

View File

@ -1,3 +1,4 @@
LINT_ARGS ?= ./...
export GO111MODULE := on export GO111MODULE := on
build: bin/server build: bin/server
@ -13,7 +14,7 @@ test: tidy
go test -mod=vendor -v ./... go test -mod=vendor -v ./...
lint: lint:
@PATH=$(PATH):./bin/gometalinter gometalinter -e '.*/pkg/mod' -e ".*/go/src" --vendor $(LINT_ARGS) ./... @golangci-lint run -e '.*/pkg/mod' -e ".*/go/src" --enable-all $(LINT_ARGS)
tidy: tidy:
go mod tidy go mod tidy
@ -24,8 +25,8 @@ vendor: tidy
install-devtools: vendor install-devtools: vendor
# Install modd # Install modd
GO111MODULE=off go get -u github.com/cortesi/modd/cmd/modd GO111MODULE=off go get -u github.com/cortesi/modd/cmd/modd
# Install Gometalinter # Install golangci-lint
bash misc/gometalinter/install.sh -b ./bin/gometalinter GO111MODULE=off go get -u github.com/golangci/golangci-lint/cmd/golangci-lint
clean: clean:
rm -rf ./bin rm -rf ./bin