tendermint / coding

14 stars 10 forks source link

all: add a .git precommit hook #22

Closed odeke-em closed 6 years ago

odeke-em commented 7 years ago

So the Go project has a precommit hook for Git that checks if all the files are go-fmt'd at https://github.com/golang/go/blob/964639cc338db650ccadeafb7424bc8ebb2c0f6c/misc/git/pre-commit#L1-L26

I think this could be a start for always ensuring that our source code is go-fmt'd and then later on we can add other rules and tools.

zramsay commented 6 years ago

this is pretty much handled by metalinter & we don't have a problem with PRs that lack fmt