-
Notifications
You must be signed in to change notification settings - Fork 6
/
grumphp.yml
43 lines (43 loc) · 1.58 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
parameters:
grumphp.run_on_paths: ['web/modules/custom', 'web/themes/custom']
grumphp:
stop_on_failure: true
process_timeout: 300
ascii:
failed: ~
succeeded: ~
tasks:
# @see: https://github.com/phpro/grumphp/blob/v2.x/doc/tasks/git_commit_message.md
git_commit_message:
max_body_width: 0
max_subject_width: 0
matchers:
# Modify the universal JIRA regex provided to suit your project requirements, incl. name.
# For example, the regex for a project called WD would be: `/^WD-[1-9][0-9]*: /`.
'The commit must start with the JIRA or GitHub issue number': '/^[A-Z][A-Z0-9_]+-[1-9][0-9]*: /'
php_compatibility:
run_on: '%grumphp.run_on_paths%'
testVersion: '8.2'
check_file_permissions: ~
php_check_syntax:
run_on: '%grumphp.run_on_paths%'
phpcs:
standard: ['phpcs.xml']
run_on: '%grumphp.run_on_paths%'
php_stan:
run_on: '%grumphp.run_on_paths%'
yaml_lint: ~
json_lint: ~
# PHPUnit will fail with 0 tests.
phpunit:
testsuite: unit
extensions:
- Wunderio\GrumPHP\Task\PhpCompatibility\PhpCompatibilityExtensionLoader
- Wunderio\GrumPHP\Task\PhpCheckSyntax\PhpCheckSyntaxExtensionLoader
- Wunderio\GrumPHP\Task\CheckFilePermissions\CheckFilePermissionsExtensionLoader
- Wunderio\GrumPHP\Task\Phpcs\PhpcsExtensionLoader
- Wunderio\GrumPHP\Task\PhpStan\PhpStanExtensionLoader
- Wunderio\GrumPHP\Task\YamlLint\YamlLintExtensionLoader
- Wunderio\GrumPHP\Task\JsonLint\JsonLintExtensionLoader
git_hook_variables:
EXEC_GRUMPHP_COMMAND: lando php