Don't lint every go file on every commit.
Faster commits, less redundancy
This commit is contained in:
parent
b53c908b55
commit
18db17fe0b
1 changed files with 2 additions and 2 deletions
|
|
@ -12,9 +12,9 @@ pre-commit:
|
|||
glob: "*.go"
|
||||
run: gofmt -w {staged_files}
|
||||
stage_fixed: true
|
||||
lint:
|
||||
golint:
|
||||
glob: "*.go"
|
||||
run: golangci-lint run --fix
|
||||
run: golangci-lint run --fix {staged_files}
|
||||
stage_fixed: true
|
||||
prettier:
|
||||
glob: "*.{html,js,ts,vue,scss}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue