forked from akiessling/grumphp-conventions-typo3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
grumphp.yml
109 lines (102 loc) · 2.86 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
parameters:
git_dir: .
bin_dir: ".Build/bin"
package_dir: ".Build/vendor/extrameile/grumphp-conventions-typo3"
ascii: ~
process_timeout: "%convention.process_timeout%"
convention.process_timeout: 60
convention.xmllint_ignore_pattern: []
convention.yamllint_ignore_pattern: []
convention.jsonlint_ignore_pattern:
- "Resources/Public/JavaScript/Libraries/"
convention.phpmd_ruleset: "%package_dir%/phpmd.xml"
convention.phpcs_standard: "%package_dir%/phpcs.xml"
convention.phpcs_slevomat_directories: "Classes"
convention.phpcpd_ignore_pattern:
- ".Build"
- "tmp-phpqa"
- "Configuration/TCA"
convention.phpstan_configuration: ~
convention.phpstan_level: 5
convention.phpstan_ignore_pattern:
- "ext_emconf.php"
- "tmp-phpqa/*"
convention.phpcslint_ignore_pattern:
- ext_emconf.php
- ext_localconf.php
- ext_tables.php
tasks:
git_commit_message:
matchers:
- /(\[(!!!|WIP)]|)(\[(BUGFIX|FEATURE|TASK|CLEANUP|SECURITY)]|Merge branch '.+' into) .+/
case_insensitive: false
multiline: true
additional_modifiers: ''
phpmnd: ~
phpstan:
configuration: "%convention.phpstan_configuration%"
level: "%convention.phpstan_level%"
ignore_patterns: "%convention.phpstan_ignore_pattern%"
phpcpd:
exclude: "%convention.phpcpd_ignore_pattern%"
phpmd:
ruleset:
- "%convention.phpmd_ruleset%"
git_blacklist:
keywords:
- "var_dump("
- "console.log("
- "print_r("
- "exit;"
- "exit("
- "die("
- "die;"
- "fileadmin"
- "DebuggerUtility"
whitelist_patterns:
- /^Classes\/(.*)/
triggered_by: [php, js, html]
metadata:
blocking: false #show only as warnings
jsonlint:
ignore_patterns: "%convention.jsonlint_ignore_pattern%"
detect_key_conflicts: true
phpcs:
ignore_patterns: "%convention.phpcslint_ignore_pattern%"
tab_width: 4
standard: "%convention.phpcs_standard%"
phplint: ~
xmllint:
ignore_patterns: "%convention.xmllint_ignore_pattern%"
triggered_by: ['xml']
xlifflint:
ignore_patterns: []
load_from_net: false
x_include: false
dtd_validation: false
scheme_validation: false
triggered_by: ['xlf']
yamllint:
ignore_patterns: "%convention.yamllint_ignore_pattern%"
securitychecker: ~
phpparser:
visitors:
forbidden_function_calls:
blacklist:
- var_dump
- var_export
- debug
- echo
forbidden_static_method_calls:
blacklist:
- TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump
extensions:
- PLUS\GrumPHPXliffTask\ExtensionLoader
testsuites:
phpcs:
tasks:
- shell
xml:
tasks:
- xmllint
- xlifflint