11parameters :
22 hooks_dir : ~
33 hooks_preset : local
4- stop_on_failure : true
4+ stop_on_failure : false
55 hide_circumvention_tip : true
66 ascii : ~
77 fixer :
88 enabled : true
9- fix_by_default : false
10- environment :
11- file :
12- - .env
13- - .env.local
9+ fix_by_default : true
10+ extensions :
11+ - Gent\QA\Drupal\GrumPHPExtension
1412 testsuites :
1513 git_commit_msg :
1614 tasks :
1715 - git_commit_message
1816 git_pre_commit :
1917 tasks :
18+ - composer
2019 - git_blacklist
2120 - git_branch_name
21+ - phpcpd
2222 - phpcs
2323 - phpmd
24+ - phpstan
25+ - yamllint
26+ tests :
27+ tasks :
28+ - behat
29+ - phpunit
2430 tasks :
2531 behat :
26- config : vendor/gent/qa-drupal/configs/behat.yml
27- composer : ~
28- composer_normalize :
29- indent_size : ~
30- indent_style : ~
32+ config : .behat-merged.yml
33+ composer :
34+ no_check_publish : true
3135 git_blacklist :
3236 keywords :
3337 - " die\\ ("
3438 - " exit;"
3539 - " exit\\ ("
3640 - " \\ $_[A-Z_]+\\ ["
3741 whitelist_patterns :
38- - " #^web/modules/custom/#"
39- - " #^web/profiles/custom/#"
40- - " #^web/themes/custom/#"
42+ - " #^web/(modules|themes|profiles)/custom/#"
4143 triggered_by :
4244 - php
4345 - inc
@@ -47,28 +49,43 @@ parameters:
4749 - profile
4850 git_branch_name :
4951 whitelist :
50- - " #^feature/[A-Z]+-\\ d+$#"
51- - " #^feature/[a-z\\ -]+$#"
52- - " #^release/\\ d+\\ .\\ d+\\ .\\ d+$#"
53- - " #^hotfix/\\ d+\\ .\\ d+\\ .\\ d+$#"
54- - develop
52+ - " #^develop|feature/([A-Z]+-\\ d+|[a-z]+(-[a-z]+)*)|(release|hotfix)/\\ d+(\\ .\\ d+){2}$#"
5553 git_commit_message :
5654 enforce_no_subject_trailing_period : false
5755 max_body_width : 80
5856 max_subject_width : 80
5957 matchers :
60- - " /^[A-Z]+-\\ d+(, [A-Z]+-\\ d+)*: (Add|Change|Fix|Update|Remove) /"
61- - " /^(Add|Change|Fix|Update|Remove) /"
58+ - " /^([A-Z]+-\\ d+(, [A-Z]+-\\ d+)*: )?(Add|Change|Fix|Update|Remove) /"
6259 case_insensitive : false
63- phpcpd : ~
60+ phpcpd :
61+ directory :
62+ - web
63+ exclude :
64+ - core
65+ - libraries
66+ - modules/contrib
67+ - themes/contrib
68+ - profiles/contrib
69+ - sites
70+ names_exclude :
71+ - " *.api.php"
72+ - " *Test.php"
73+ - " *TestBase.php"
74+ - " *TestCase.php"
75+ min_lines : 10
76+ triggered_by :
77+ - php
78+ - inc
79+ - install
80+ - module
81+ - theme
82+ - profile
6483 phpcs :
6584 standard :
6685 - vendor/gent/qa-drupal/configs/phpcs.xml
6786 report_width : 120
6887 whitelist_patterns :
69- - " #^web/modules/custom/#"
70- - " #^web/profiles/custom/#"
71- - " #^web/themes/custom/#"
88+ - " #^web/(modules|themes|profiles)/custom/#"
7289 ignore_patterns :
7390 - node_modules/
7491 triggered_by :
@@ -80,13 +97,10 @@ parameters:
8097 - profile
8198 - yml
8299 phpmd :
83- whitelist_patterns :
84- - " #^web/modules/custom/#"
85- - " #^web/profiles/custom/#"
86- - " #^web/themes/custom/#"
87- report_format : ansi
88100 ruleset :
89101 - vendor/gent/qa-drupal/configs/phpmd.xml
102+ whitelist_patterns :
103+ - " #^web/(modules|themes|profiles)/custom/#"
90104 triggered_by :
91105 - php
92106 - inc
@@ -98,9 +112,7 @@ parameters:
98112 configuration : vendor/gent/qa-drupal/configs/phpstan-site.neon
99113 level : 8
100114 force_patterns :
101- - " #^web/modules/custom/#"
102- - " #^web/profiles/custom/#"
103- - " #^web/themes/custom/#"
115+ - " #^web/(modules|themes|profiles)/custom/#"
104116 ignore_patterns :
105117 - " #.*#"
106118 triggered_by :
@@ -114,11 +126,8 @@ parameters:
114126 config_file : vendor/gent/qa-drupal/configs/phpunit-site.xml
115127 yamllint :
116128 whitelist_patterns :
117- - " #^[^/]+\\ .yml$#"
118- - " #^\\ .[^/]+/[^/]+\\ .yml$#"
129+ - " #^(\\ .[^/]+/)?[^/]+\\ .yml$#"
119130 - " #^config/#"
120- - " #^web/modules/custom/#"
121- - " #^web/profiles/custom/#"
122- - " #^web/themes/custom/#"
131+ - " #^web/(modules|themes|profiles)/custom/#"
123132 ignore_patterns :
124133 - node_modules/
0 commit comments