-
Notifications
You must be signed in to change notification settings - Fork 2
/
grumphp.yml
109 lines (108 loc) · 2.7 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
grumphp:
ignore_unstaged_changes: false
ascii:
succeeded: vendor/shaquer/grumphp-config/art/success.txt
failed: vendor/shaquer/grumphp-config/art/error.txt
tasks:
composer: ~
composer_normalize: ~
jsonlint: ~
twigcs:
path: "."
severity: "warning"
ruleset: 'FriendsOfTwig\Twigcs\Ruleset\Official'
triggered_by: ["twig", "twig.html"]
exclude:
- vendor
- web/core
- web/modules/contrib
- web/themes/contrib
- docroot/modules/contrib
- docroot/themes/contrib
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:
use_grumphp_paths: true
configuration: vendor/shaquer/grumphp-config/phpstan.neon
level: 1
ignore_patterns:
- '/^(docroot|web)\/modules\/contrib\/(.*)(php)$/'
- '/^(docroot|web)\/core\/(.*)(php)$/'
- "/^vendor/"
- '/^\./'
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: E
metadata:
blocking: true
priority: 900
phpcs:
standard:
- vendor/drupal/coder/coder_sniffer/Drupal
- vendor/drupal/coder/coder_sniffer/DrupalPractice
ignore_patterns:
- /^scripts/
- /^drush\/(.*)/
- .github
- .gitlab
- bower_components
- node_modules
- vendor
- config/
- docroot/libraries/
- docroot/themes/custom/*/components
- web/libraries/
- web/themes/custom/*/components
triggered_by:
- php
- module
- inc
- install
- test
- profile
- theme
- css
- info
- txt
- md