mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-02-07 13:31:37 +02:00
chore: using golangci-lint as linter
This commit is contained in:
parent
6eeb85a7e2
commit
2c00008411
4
Makefile
4
Makefile
@ -9,8 +9,8 @@ export PATH := ./bin:$(PATH)
|
||||
setup:
|
||||
go get -u golang.org/x/tools/cmd/stringer
|
||||
go get -u golang.org/x/tools/cmd/cover
|
||||
go get -u github.com/golangci/golangci-lint/cmd/golangci-lint
|
||||
curl -sfL https://install.goreleaser.com/github.com/gohugoio/hugo.sh | sh
|
||||
curl -sfL https://install.goreleaser.com/github.com/alecthomas/gometalinter.sh | sh
|
||||
curl -sfL https://install.goreleaser.com/github.com/caarlos0/bandep.sh | sh
|
||||
ifeq ($(OS), Darwin)
|
||||
brew install dep
|
||||
@ -44,7 +44,7 @@ fmt:
|
||||
|
||||
# Run all the linters
|
||||
lint:
|
||||
gometalinter --deadline 2m --vendor ./...
|
||||
golangci-lint run --enable-all ./...
|
||||
find . -name '*.md' -not -wholename './vendor/*' | xargs prettier -l
|
||||
.PHONY: lint
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user