forked from bruli/php-git-hooks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphp-git-hooks.yml.sample
52 lines (52 loc) · 1.34 KB
/
php-git-hooks.yml.sample
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
pre-commit:
enabled: true
execute:
php-cs-fixer:
enabled: true
levels:
psr0: true
psr1: true
psr2: true
symfony: true
options: "--fixers=short_array_syntax --diff"
phpunit:
enabled: true
random-mode: true
options: '<some options>'
strict-coverage:
enabled: true
minimum: !!float 0
guard-coverage:
enabled: true
message: 'WARNING!!, your code coverage is lower.'
phplint: true
phpcs:
enabled: true
standard: PSR2
ignore: '*/migrations/*'
phpmd:
enabled: true
options: '<some options>'
composer: true
message:
right-message: 'HEY, GOOD JOB!!'
error-message: 'FIX YOUR CODE!!'
commit-msg:
enabled: true
regular-expression: '#[0-9]{2,7}'
pre-push:
enabled: true
execute:
phpunit:
enabled: true
random-mode: true
options: '<some options>'
strict-coverage:
enabled: true
minimum: 90
guard-coverage:
enabled: true
message: 'WARNING!!, your code coverage is lower.'
message:
right-message: 'PUSH IT!!'
error-message: 'YOU CAN NOT PUSH CODE!!'