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:
parent
34dcca710b
commit
9dbae4106b
4
Makefile
4
Makefile
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user