Makefile: drop gofmt in favor of golangci-lint (#7260)
* setup: update linter make jobs * go lint: remove wsl from golangci-lint config * rollback to use disable-all * bring back vendor rules * lint fails on golangci-lint error Co-authored-by: Alessio Treglia <alessio@tendermint.com>
This commit is contained in:
parent
a722933ade
commit
f52cce2909
8
Makefile
8
Makefile
|
@ -310,9 +310,11 @@ benchmark:
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
golangci-lint run --out-format=tab --issues-exit-code=0
|
golangci-lint run --out-format=tab
|
||||||
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -name '*.pb.go' | xargs gofmt -d -s
|
|
||||||
.PHONY: lint
|
lint-fix:
|
||||||
|
golangci-lint run --fix --out-format=tab --issues-exit-code=0
|
||||||
|
.PHONY: lint lint-fix
|
||||||
|
|
||||||
format:
|
format:
|
||||||
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' | xargs gofmt -w -s
|
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' | xargs gofmt -w -s
|
||||||
|
|
|
@ -7,7 +7,6 @@ import (
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
// nolint:deadcode,unused
|
|
||||||
var (
|
var (
|
||||||
pk1 = ed25519.GenPrivKey().PubKey()
|
pk1 = ed25519.GenPrivKey().PubKey()
|
||||||
pk2 = ed25519.GenPrivKey().PubKey()
|
pk2 = ed25519.GenPrivKey().PubKey()
|
Loading…
Reference in New Issue