nurse/.husky.toml
Peter Kurfer 9791e9f282
All checks were successful
Renovate / renovate (push) Successful in 40s
Go build / build (push) Successful in 8m44s
feat: refactor to server and exec-check subcommands
- allow to interactively execute checks instead of server mode
- use urfave/cli for subcommands
2023-12-04 11:22:49 +01:00

24 lines
No EOL
517 B
TOML

[hooks]
pre-commit = [
"golangci-lint run --fast --fix",
"husky lint-staged",
]
commit-msg = [
"husky lint-commit",
]
[lint-staged]
"*.go" = [
"goimports -l -w",
"gofmt -l -w",
]
[lint-commit]
# could check if this exists
# email = "^(.+@gmail.com|.+@qq.com)$"
# optional custom types check regex
types = "^(feat|fix|build|chore|ci|docs|perf|refactor|revert|style|test)$"
# optional header check regex
header = "^(?P<type>\\w+)(\\((?P<scope>[\\w/.-]+)\\))?(?P<breaking>!)?:( +)?(?P<header>.+)"