forked from ushahidi/platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
captainhook.json
54 lines (54 loc) · 1.78 KB
/
captainhook.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
{
"commit-msg": {
"enabled": true,
"actions": [
{
"action": "\\SebastianFeldmann\\CaptainHook\\Hook\\Message\\Action\\Rules",
"options": [
"\\SebastianFeldmann\\CaptainHook\\Hook\\Message\\Rule\\MsgNotEmpty",
"\\SebastianFeldmann\\CaptainHook\\Hook\\Message\\Rule\\NoPeriodOnSubjectEnd"
]
},
{
"action": "\\SebastianFeldmann\\CaptainHook\\Hook\\Message\\Action\\Regex",
"options": {
"regex": "#^(Merge|(feat|fix|docs|style|refactor|test|chore|perf|build|ci|revert)(\\(.*\\))?:) .*#i"
}
}
]
},
"pre-commit": {
"enabled": true,
"actions": [
{
"action": "\\SebastianFeldmann\\CaptainHook\\Hook\\Composer\\Action\\CheckLockFile",
"options": []
},
{
"action": "\\SebastianFeldmann\\CaptainHook\\Hook\\PHP\\Action\\Linting",
"options": []
},
{
"action": "\\Tests\\CaptainHook\\PHPCS",
"options": [
"--ignore=vendor/*,application/*,modules/*,plugins/*,httpdocs/*,tests/spec/*,migrations/*,bin/*,database/*,resources/views/*,resources/lang/*",
"--standard=src/ruleset.xml",
"--tab-width=4"
]
}
]
},
"pre-push": {
"enabled": true,
"actions": [
{
"action": "bin/phpspec run --no-code-generation",
"options": []
},
{
"action": "bin/phpunit --no-coverage",
"options": []
}
]
}
}