-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
58 lines (57 loc) · 1.89 KB
/
.pre-commit-config.yaml
File metadata and controls
58 lines (57 loc) · 1.89 KB
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
55
56
57
58
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
fail_fast: true
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-added-large-files
args: ['--maxkb=6000']
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-vcs-permalinks
- id: check-xml
- id: end-of-file-fixer
- id: forbid-new-submodules
- id: mixed-line-ending
- id: trailing-whitespace
- repo: local
hooks:
- id: composer-validate
name: Validate composer
language: system
entry: composer validate
files: composer.json
pass_filenames: false
- id: php-lint
name: PHP lint
language: system
entry: php -l
files: \.php$
- id: ecs
name: EasyCodingStandard
language: system
entry: vendor/bin/ecs check --fix --config=ecs.php
files: \.php$
- id: phpstan
name: PhpStan
language: system
pass_filenames: false
entry: vendor/bin/phpstan analyse
files: ^(.*\.php|composer.lock)$
args: [ '-c', './phpstan.neon' ]
- id: phpstan-tests
name: PhpStan tests
language: system
pass_filenames: false
entry: vendor/bin/phpstan analyse
files: ^(.*\.php|composer.lock)$
args: [ '-c', './phpstan.tests.neon' ]
- id: phpunit
name: PhpUnit tests
language: system
pass_filenames: false
entry: bash -c 'XDEBUG_MODE=off vendor/bin/phpunit'
files: ^(.*\.php|composer.lock)$