-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
60 lines (56 loc) · 1.42 KB
/
.pre-commit-config.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
50
51
52
53
54
55
56
57
58
59
60
# pre-commit hooks, see https://pre-commit.com
#
# install git hooks with pre-commit install
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.0.0
hooks:
- id: trailing-whitespace
exclude_types: [markdown]
- id: end-of-file-fixer
- id: check-yaml
- id: check-json
- id: check-xml
- id: check-added-large-files
- id: forbid-new-submodules
- id: check-symlinks
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: mixed-line-ending
- repo: https://github.com/digitalpulp/pre-commit-php.git
rev: 1.4.0
hooks:
- id: php-lint
- id: php-cs-fixer
files: \.(php)$
- id: php-stan
files: \.(php)$
- repo: https://github.com/motet-a/jinjalint
rev: 01e0a4d8f1e
hooks:
- id: jinjalint
types: [text]
files: \.twig$
- repo: local
hooks:
- id: matching_parameters
name: param values in %
types: [yaml]
files: ^config/
language: pygrep
entry: '^[^%#\n]*%([^%\n]*%[^%\n]*%)*[^%\n]*($|#)'
args: [--multiline]
- id: lint-container
name: check config of container
files: ^config/
language: script
entry: bin/console
args: [lint:container]
pass_filenames: false
- id: composer-validate
name: composer files valid
files: composer.(json|lock)
language: system
entry: composer
args: [validate]
pass_filenames: false