Update Makefile (#13920)

golangci-lint now runs gofumpt when run with --fix, so we no longer need the gofumpt line here.  Also bumped to latest golangci-lint.
This commit is contained in:
Jacob Gadikian 2022-11-18 19:09:51 +07:00 committed by GitHub
parent 34dcca710b
commit 9dbae4106b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -338,7 +338,7 @@ benchmark:
###############################################################################
golangci_lint_cmd=golangci-lint
golangci_version=v1.50.0
golangci_version=v1.50.1
lint:
@echo "--> Running linter"
@ -353,9 +353,7 @@ lint-fix:
.PHONY: lint lint-fix
format:
@go install mvdan.cc/gofumpt@latest
@go install github.com/golangci/golangci-lint/cmd/golangci-lint@$(golangci_version)
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "./client/docs/statik/statik.go" -not -path "./tests/mocks/*" -not -name "*.pb.go" -not -name "*.pb.gw.go" -not -name "*.pulsar.go" -not -path "./crypto/keys/secp256k1/*" | xargs gofumpt -w -l
$(golangci_lint_cmd) run --fix
.PHONY: format