Repository navigation
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
55 lines (51 loc) · 2.27 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
55 lines (51 loc) · 2.27 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
# For use with pre-commit.
# See usage instructions at http://pre-commit.com
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: 'v5.0.0'
hooks:
- id: check-added-large-files
args: ['--maxkb=512']
exclude: ^(locales|include/fa|include/css|include/js|include/vendor|\.css$|\.js$)\/.*$
- id: check-executables-have-shebangs
exclude: ^(locales|include/fa|include/css|include/js|include/vendor|\.css$|\.js$)\/.*$
- id: check-json
exclude: ^(locales|include/fa|include/css|include/js|include/vendor|\.css$|\.js$)\/.*$
- id: end-of-file-fixer
exclude: ^(locales|include/fa|include/css|include/js|include/vendor|\.css$|\.js$)\/.*$
- id: mixed-line-ending
exclude: ^(locales|include/fa|include/css|include/js|include/vendor|\.css$|\.js$)\/.*$
# - id: pretty-format-json
# exclude: ^(locales|include/fa|include/css|include/js|include/vendor|\.css$|\.js$)\/.*$
- id: trailing-whitespace
exclude: ^(locales|include/fa|include/css|include/js|include/vendor|\.css$|\.js$)\/.*$
# - repo: https://github.com/codespell-project/codespell.git
# rev: 'v2.4.1'
# hooks:
# - id: codespell
# args: [--config .codespellrc]
# exclude: (^.git\/|^css\/|^fonts\/|^img\/|^js\/|^twig\/|^vendor\/|\.png$|\.css$|\.pot$|\.po$|\.mo$|\.gif$|\.eot$|\.ttf$|\.woff$|\.woff2$|\.ico$|\.phar$|\.map$|\.psd$)
# - repo: https://github.com/markdownlint/markdownlint.git
# rev: 'v0.12.0'
# hooks:
# - id: markdownlint
# files: \.(md|MD)$
# exclude: ^(locales|include/fa|include/css|include/js|include/vendor)\/.*$
- repo: https://github.com/cigamit/pre-commit-php.git
rev: '511692fd4e9f93f3bf556086e3966caf647e47e0'
hooks:
- id: php-lint
exclude: ^(locales|include/fa|include/css|include/js|include/vendor)\/.*$
- id: php-lint-all
exclude: ^(locales|include/fa|include/css|include/js|include/vendor)\/.*$
# - id: php-cs-fixer
# args: [--path-mode=intersection]
# files: \.(php)$
# exclude: ^(locales|include/fa|include/css|include/js|include/vendor)\/.*$
- id: php-stan
args:
- analyze
- "--level 5"
- "--configuration=.phpstan.neon"
files: \.(php)$
exclude: ^(locales|include/fa|include/css|include/js|include/vendor)\/.*$