-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
55 lines (51 loc) · 1.52 KB
/
.pre-commit-config.yaml
File metadata and controls
55 lines (51 loc) · 1.52 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
# See https://pre-commit.com for more information
repos:
- repo: local
hooks:
- id: phpstan
name: PHPStan Static Analysis
entry: vendor/bin/phpstan
args: ['analyse', '--no-progress', '--no-ansi']
language: system
files: \.php$
pass_filenames: false
stages: [commit]
- id: phpunit
name: PHPUnit Tests
entry: vendor/bin/phpunit
args: ['--no-coverage', '--colors=never']
language: system
files: \.php$
pass_filenames: false
stages: [commit]
- id: phpcs-psr12
name: PHP Code Sniffer (PSR-12)
entry: vendor/bin/phpcs
args: ['--standard=PSR12', '--colors', '--report=summary']
language: system
files: \.php$
exclude: ^(vendor/|examples/|benchmarks/)
- id: phpcbf-psr12
name: PHP Code Beautifier and Fixer (PSR-12)
entry: vendor/bin/phpcbf
args: ['--standard=PSR12']
language: system
files: \.php$
exclude: ^(vendor/|examples/|benchmarks/)
stages: [commit]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
exclude: \.md$
- id: end-of-file-fixer
exclude: \.md$
- id: check-yaml
- id: check-json
- id: check-added-large-files
args: ['--maxkb=1000']
- id: check-merge-conflict
- id: mixed-line-ending
args: ['--fix=lf']
- id: check-docstring-first
- id: check-case-conflict