Use gofumpt not gofmt in Makefile
This commit is contained in:
13
Makefile
13
Makefile
@@ -148,12 +148,15 @@ test-sim-multi-seed-short: runsim
|
|||||||
### Linting ###
|
### Linting ###
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
lint:
|
gofumpt:
|
||||||
golangci-lint run --tests=false
|
go install mvdan.cc/gofumpt@v0.3.1
|
||||||
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "*_test.go" | xargs gofmt -d -s
|
|
||||||
|
|
||||||
format:
|
lint: gofumpt
|
||||||
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "./client/lcd/statik/statik.go" | xargs gofmt -w -s
|
golangci-lint run --tests=false
|
||||||
|
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "*_test.go" | xargs gofumpt -d -s
|
||||||
|
|
||||||
|
format: gofumpt
|
||||||
|
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "./client/lcd/statik/statik.go" | xargs gofumpt -w -s
|
||||||
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "./client/lcd/statik/statik.go" | xargs misspell -w
|
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "./client/lcd/statik/statik.go" | xargs misspell -w
|
||||||
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "./client/lcd/statik/statik.go" | xargs goimports -w -local github.com/CosmWasm/wasmd
|
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "./client/lcd/statik/statik.go" | xargs goimports -w -local github.com/CosmWasm/wasmd
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user