-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathlefthook.yml
More file actions
30 lines (26 loc) · 818 Bytes
/
lefthook.yml
File metadata and controls
30 lines (26 loc) · 818 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
pre-commit:
parallel: false
commands:
sync-readme-examples:
glob:
- "*.php"
- "*.md"
run: vendor/bin/readme-examples-sync
stage_fixed: true
composer-validate:
glob:
- "composer.json"
- "composer.lock"
run: composer validate --strict
composer-normalize:
glob: "composer.json"
run: composer normalize --diff
stage_fixed: true
php-cs-fixer:
glob: "*.php"
run: vendor/bin/php-cs-fixer fix --config .php-cs-fixer.php -- {staged_files}
stage_fixed: true
rector:
glob: "*.php"
run: vendor/bin/rector process {staged_files}
stage_fixed: true