Skip to content

Commit fca179f

Browse files
committed
feat(cli): add lefthook
1 parent 4faf495 commit fca179f

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

lefthook.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
pre-commit:
2+
parallel: false
3+
commands:
4+
gofmt:
5+
glob: "**/*.go"
6+
run: gofmt -w {staged_files}
7+
stage_fixed: true
8+
go-vet:
9+
run: go vet ./...
10+
go-test:
11+
run: go test ./...
12+
13+
pre-push:
14+
commands:
15+
go-vet:
16+
run: go vet ./...
17+
go-test:
18+
run: go test ./...

0 commit comments

Comments
 (0)