forked from erik-seifert/grumphp-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
grumphp.yml
86 lines (86 loc) · 2.88 KB
/
grumphp.yml
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
parameters:
extensions:
- bconnect\GrumPHPTwigCS\ExtensionLoader
git_dir: .
bin_dir: vendor/bin
ascii:
succeeded: vendor/shaquer/grumphp-config/art/success.txt
failed: vendor/shaquer/grumphp-config/art/error.txt
tasks:
twig_cs:
whitelist_patterns:
- /^(docroot|web)\/modules\/custom\/(.*)/
- /^(docroot|web)\/themes\/custom\/(.*)/
- /^(docroot|web)\/themes\/patternlab\/(.*)/
triggered_by: ['twig']
jsonlint:
ignore_patterns: ['/^(?!docroot\/modules\/custom).*/', '/^(?!web\/modules\/custom).*/']
git_commit_message:
max_subject_width: 0
allow_empty_message: false
type_scope_conventions:
types:
- build
- ci
- chore
- docs
- feat
- fix
- new
- upd
- perf
- refactor
- revert
- style
- test
- chg
phpstan:
configuration: vendor/shaquer/grumphp-config/phpstan.neon
level: 1
ignore_patterns: ['/^.*/']
force_patterns:
- '/^(docroot|web)\/modules\/custom\/(.*)(php)$/'
memory_limit: "-1"
triggered_by: ['php']
yamllint:
whitelist_patterns:
- /^(docroot|web)\/modules\/custom\/(.*)/
- /^(docroot|web)\/themes\/custom\/(.*)/
ignore_patterns: []
object_support: false
exception_on_invalid_type: false
parse_constant: false
parse_custom_tags: false
git_blacklist:
keywords:
- "die("
- "dsm("
- "dump("
- "print_r("
- "var_dump("
- "exit;"
whitelist_patterns:
- /^(docroot|web)\/modules\/custom\/(.*)/
- /^(docroot|web)\/themes\/custom\/(.*)/
triggered_by: ['php', 'module', 'inc', 'install', 'theme']
regexp_type: G
phpcs:
standard:
- vendor/drupal/coder/coder_sniffer/Drupal
- vendor/drupal/coder/coder_sniffer/DrupalPractice
ignore_patterns:
- config/
- docroot/libraries/
- docroot/themes/custom/*/components
- web/libraries/
- web/themes/custom/*/components
triggered_by:
- php
- module
- inc
- yml
- install
- theme
whitelist_patterns:
- /^(docroot|web)\/modules\/custom\/(.*)/
- /^(docroot|web)\/themes\/custom\/(.*)/