-
Notifications
You must be signed in to change notification settings - Fork 18
/
.pre-commit-config.yaml
47 lines (43 loc) · 1.19 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
exclude: |
(?x)(
^website/app/languages/|
^website/app/dict/|
^website/app-templates/smarty/help-pages/|
^website/public/assets/images/|
^website/db/dumps/|
^vendor/|
^composer.json$
)
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: check-json
- id: pretty-format-json
args: ["--autofix"]
# - repo: https://github.com/Lucas-C/pre-commit-hooks
# rev: v1.5.5
# hooks:
# - id: remove-crlf
- repo: https://github.com/digitalpulp/pre-commit-php.git
rev: 1.4.0
hooks:
- id: php-lint-all
- id: php-cs-fixer
files: \.(php)$
args: [ "--config=.php-cs-fixer.php", "-q", "--diff" ]
- repo: https://github.com/IamTheFij/docker-pre-commit.git
rev: v3.0.1
hooks:
- id: docker-compose-check
files: docker-compose.*.ya?ml$
- repo: https://github.com/hadolint/hadolint
rev: v2.12.0
hooks:
- id: hadolint