forked from digitalpulp/pre-commit-php
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-hooks.yaml
49 lines (43 loc) · 1.43 KB
/
.pre-commit-hooks.yaml
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
- id: php-lint-all
name: PHP Syntax Check (Comprehensive)
description: Check PHP Syntax on ALL PHP staged files with user friendly messages and colors
entry: pre_commit_hooks/php-lint.sh
language: script
files: \.php$
args: [-s all]
- id: php-lint
name: PHP Syntax Check (Quick)
description: Runs php -l on all staged PHP files. Exits when it hits the first errored file
entry: php -l
language: system
files: \.php$
- id: php-unit
name: PHP Unit
description: Run the full php unit test. Checks which PHPUnit executable is available first and then runs it. Preference order is vendor/bin, phpunit and phpunit.phar.
entry: pre_commit_hooks/php-unit.sh
language: script
files: \.php$
- id: php-cs
name: PHP Codesniffer
description: Run php codesniffer against all staged PHP files.
entry: pre_commit_hooks/php-cs.sh
language: script
files: \.php$
- id: php-cbf
name: PHP Codesniffer (Code Beautifier and Formatter)
description: Run php codesniffer against all staged PHP files.
entry: pre_commit_hooks/php-cbf.sh
language: script
files: \.php$
- id: php-cs-fixer
name: PHP Coding Standards Fixer
description: Run php coding standards fixer against all staged PHP files.
entry: pre_commit_hooks/php-cs-fixer.sh
language: script
files: \.php$
- id: php-stan
name: PHPStan
description: Run PHPStan against all staged PHP files.
entry: pre_commit_hooks/php-stan.sh
language: script
files: \.php$