-
Notifications
You must be signed in to change notification settings - Fork 5
/
captainhook.template.json
92 lines (92 loc) · 2.66 KB
/
captainhook.template.json
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{
"commit-msg": {
"enabled": true,
"actions": [
{
"action": "\\Netgen\\GitHooks\\Action\\Regex",
"options": {
"regex": "/^[A-Z0-9]+-\\d+:?\\s/",
"error": "Your commit message MUST start with a ticket ID"
}
}
]
},
"pre-push": {
"enabled": false,
"actions": []
},
"pre-commit": {
"enabled": true,
"actions": [
{
"action": "\\Netgen\\GitHooks\\Action\\CheckForBlockedWords",
"options": {
"extensions": ["php"],
"keyword_blocklist": ["var_dump", "dump", "dd"],
"excluded_files": []
}
},
{
"action": "\\Netgen\\GitHooks\\Action\\CheckForBlockedWords",
"options": {
"extensions": ["twig"],
"keyword_blocklist": ["dump"],
"excluded_files": []
}
},
{
"action": "\\CaptainHook\\App\\Hook\\Composer\\Action\\CheckLockFile"
},
{
"action": "\\Netgen\\GitHooks\\Action\\PHPCSFixer",
"options": {
"excluded_files": ["/^.*\\.ini\\.append\\.php$/", "deploy.php", "/^deploy.*/", "config/bundles.php"],
"fixer_path": "vendor/bin/php-cs-fixer"
}
},
{
"action": "\\Netgen\\GitHooks\\Action\\PHPStan",
"options": {
"excluded_files": ["/^deploy.*/", "/^src\\/AppBundle\\/ezpublish_legacy\\/*/"]
}
},
{
"action": "\\Netgen\\GitHooks\\Action\\JSLinter",
"options": {
"excluded_files": []
}
},
{
"action": "\\Netgen\\GitHooks\\Action\\JSPrettier",
"options": {
"excluded_files": []
}
},
{
"action": "\\Netgen\\GitHooks\\Action\\CheckLockFileCommitted",
"options": {
"enabled": true
}
}
]
},
"prepare-commit-msg": {
"enabled": false,
"actions": []
},
"post-commit": {
"enabled": false,
"actions": []
},
"post-merge": {
"enabled": false,
"actions": []
},
"post-checkout": {
"enabled": false,
"actions": []
},
"config": {
"php-path": "/usr/bin/env php8.2"
}
}