mirror of
https://github.com/foomo/gofuncy.git
synced 2025-10-16 12:25:41 +00:00
16 lines
446 B
YAML
16 lines
446 B
YAML
hooks:
|
|
pre-commit:
|
|
- golangci-lint run --fast-only
|
|
- husky lint-staged
|
|
commit-msg:
|
|
# only execute if not in a merge
|
|
- if [[ -z $(git rev-parse -q --verify MERGE_HEAD) ]]; then husky lint-commit; fi
|
|
|
|
lint-staged:
|
|
'*.go':
|
|
- golangci-lint fmt
|
|
|
|
lint-commit:
|
|
types: '^(feat|fix|build|chore|docs|perf|refactor|revert|style|test|wip)$'
|
|
header: '^(?P<type>\w+)(\((?P<scope>[\w/.-]+)\))?(?P<breaking>!)?:( +)?(?P<header>.+)'
|