-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgrumphp.yml
84 lines (84 loc) · 2.34 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
# https://github.com/phpro/grumphp
parameters:
git_dir: .
bin_dir: vendor/bin
stop_on_failure: true
process_timeout: 120
# https://github.com/phpro/grumphp/blob/master/doc/tasks.md
tasks:
git_blacklist:
keywords:
- "die("
- "var_dump("
- "exit;"
- "echo "
- "dump("
regexp_type: G
whitelist_patterns:
- /^public\/(.*)/
- /^vendor\/(.*)/
phpcpd:
directory: '.'
exclude: ['vendor', 'public', 'var', 'config', 'bin', 'translations']
names_exclude: []
fuzzy: false
min_lines: 4
min_tokens: 50
phpcsfixer2:
rules:
- '@@PSR2'
- '@@Symfony'
verbose: true
diff: true
config: php_cs.php
phplint:
triggered_by: ['php', 'phtml', 'php3', 'php4', 'php5', 'twig']
phpmd:
exclude: ['tests', 'config', 'var']
ruleset: ['cleancode', 'codesize', 'design', 'controversial', 'unusedcode']
phpmnd:
directory: 'src/'
exclude: ['tests', 'config', 'var', 'translations']
extensions: ['all']
hint: true
strings: false
phpstan:
configuration: phpstan.neon
level: 7
phpunit:
config_file: phpunit.xml
testsuite: Application
always_execute: true
securitychecker:
lockfile: composer.lock
timeout: 30
run_always: false
# https://github.com/phpro/grumphp/blob/master/doc/testsuites.md
testsuites:
security:
tasks:
- securitychecker
phpunit:
tasks:
- phpunit
phpcsmd:
tasks:
- phpcsfixer2
- phpmd
- phpmnd
no-phpunit:
tasks:
- git_blacklist
- phpcpd
- phpcsfixer2
- phplint
- phpmd
- phpmnd
- phpstan
- securitychecker
phpcsfixer:
tasks:
- phpcsfixer2
phpstan:
tasks:
- phpstan