forked from hootsuite/pre-commit-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hooks.yaml
28 lines (25 loc) · 880 Bytes
/
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
- 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 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 files.
entry: pre_commit_hooks/php-cs.sh
language: script
files: \.php$