Use golangci-lint instead of gometalinter
This commit is contained in:
parent
f67724dc3a
commit
2c7aad91c6
7
Makefile
7
Makefile
@ -1,3 +1,4 @@
|
||||
LINT_ARGS ?= ./...
|
||||
export GO111MODULE := on
|
||||
|
||||
build: bin/server
|
||||
@ -13,7 +14,7 @@ test: tidy
|
||||
go test -mod=vendor -v ./...
|
||||
|
||||
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:
|
||||
go mod tidy
|
||||
@ -24,8 +25,8 @@ vendor: tidy
|
||||
install-devtools: vendor
|
||||
# Install modd
|
||||
GO111MODULE=off go get -u github.com/cortesi/modd/cmd/modd
|
||||
# Install Gometalinter
|
||||
bash misc/gometalinter/install.sh -b ./bin/gometalinter
|
||||
# Install golangci-lint
|
||||
GO111MODULE=off go get -u github.com/golangci/golangci-lint/cmd/golangci-lint
|
||||
|
||||
clean:
|
||||
rm -rf ./bin
|
||||
|
Reference in New Issue
Block a user