Add lefthook configuration for formatting
This commit is contained in:
parent
ff1fd18da1
commit
f7ad8b9c5f
1 changed files with 6 additions and 0 deletions
6
lefthook.yml
Normal file
6
lefthook.yml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
pre-commit:
|
||||
commands:
|
||||
gofmt:
|
||||
glob: "*.go"
|
||||
run: gofmt -w {staged_files}
|
||||
stage_fixed: true
|
||||
Loading…
Add table
Add a link
Reference in a new issue