-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathlefthook.yml
More file actions
36 lines (32 loc) · 877 Bytes
/
lefthook.yml
File metadata and controls
36 lines (32 loc) · 877 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# src: lefthook.yml
# @(#) : lefthook config
#
# Copyright (c) 2025 atsushifx <http://github.com/atsushifx>
#
# This software is released under the MIT License.
# https://opensource.org/licenses/MIT
pre-commit:
parallel: true
commands:
gitleaks:
run: gitleaks protect --config ./configs/gitleaks.toml --staged
secretlint:
glob: "**/*"
run: >
secretlint
--secretlintrc ./configs/secretlint.config.yaml
--secretlintignore .gitignore
--maskSecrets
"{staged_files}"
skip:
- empty
prepare-commit-msg:
commands:
prepare-message-script:
run: bash -c './scripts/prepare-commit-msg.sh --model sonnet --git-buffer'
# check commit message as Conventional Commit
commit-msg:
parallel: true
commands:
commitlint:
run: commitlint --config ./configs/commitlint.config.js --edit