mirror of
https://github.com/YuzuZensai/TrollSSH.git
synced 2026-09-13 17:09:03 +00:00
📦 build: add lefthook pre-commit hooks matching CI checks
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
pre-commit:
|
||||
parallel: true
|
||||
commands:
|
||||
format:
|
||||
glob: "*.go"
|
||||
run: test -z "$(gofmt -l {staged_files})"
|
||||
vet:
|
||||
glob: "*.go"
|
||||
run: go vet ./src/...
|
||||
lint:
|
||||
glob: "*.go"
|
||||
run: golangci-lint run ./src/...
|
||||
test:
|
||||
glob: "*.go"
|
||||
run: go test ./src/...
|
||||
Reference in New Issue
Block a user