chore: format (#38)

* setup

* tidy

* format

* final format

---------

Co-authored-by: aljo242 <alex@shmeeload.xyz>
This commit is contained in:
Alex Johnson
2023-09-07 11:17:21 -04:00
committed by GitHub
co-authored by aljo242
parent 533bb03c36
commit 02b29290d1
54 changed files with 104 additions and 39 deletions
+13
View File
@@ -176,3 +176,16 @@ lint-markdown:
@markdownlint **/*.md
.PHONY: lint lint-fix lint-markdown
###############################################################################
### Formatting ###
###############################################################################
format: use-main
format:
@find . -name '*.go' -type f -not -path "*.git*" -not -path "./client/docs/statik/statik.go" -not -name '*.pb.go' -not -name '*.pulsar.go' -not -name '*.gw.go' | xargs go run mvdan.cc/gofumpt -w .
@find . -name '*.go' -type f -not -path "*.git*" -not -path "./client/docs/statik/statik.go" -not -name '*.pb.go' -not -name '*.pulsar.go' -not -name '*.gw.go' | xargs go run github.com/client9/misspell/cmd/misspell -w
@find . -name '*.go' -type f -not -path "*.git*" -not -path "./client/docs/statik/statik.go" -not -name '*.pb.go' -not -name '*.pulsar.go' -not -name '*.gw.go' | xargs go run golang.org/x/tools/cmd/goimports -w -local github.com/skip-mev/block-sdk
.PHONY: format