cosmos-sdk/contrib/githooks
Ryan Christoffersen cb66c99eab
chore: add markdownlint to lint commands (#9353)
* add markdownlint config

* update make lint commands

* update markdownlint config

* run make lint-fix

* fix empty link

* resuse docker container

* run lint-fix

* do not echo commands

Co-authored-by: ryanchrypto <12519942+ryanchrypto@users.noreply.github.com>
2021-05-27 15:31:04 +00:00
..
README.md chore: add markdownlint to lint commands (#9353) 2021-05-27 15:31:04 +00:00
pre-commit contrib: fix path for statik files (#8248) 2021-01-04 20:02:29 +00:00

README.md

Git hooks

Installation:

git config core.hooksPath contrib/githooks

pre-commit

The hook automatically runs gofmt, goimports, and misspell to correctly format the .go files included in the commit, provided that all the aforementioned commands are installed and available in the user's search $PATH environment variable:

go get golang.org/x/tools/cmd/goimports
go get github.com/golangci/misspell/cmd/misspell@master

It also runs go mod tidy and golangci-lint if available.