forked from diviky/bright
-
Notifications
You must be signed in to change notification settings - Fork 1
/
grumphp.yml
executable file
·70 lines (70 loc) · 1.73 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
grumphp:
ascii:
failed: null
succeeded: null
process_timeout: 600
parallel:
enabled: false
max_workers: 32
fixer:
enabled: true
fix_by_default: true
testsuites:
style:
tasks:
- composer
- phpmd
- phpcsfixer
static:
tasks:
- psalm
tasks:
composer:
metadata: { priority: 700 }
git_blacklist:
keywords: [die(, var_dump(, exit;]
metadata: { priority: 500 }
phpcs:
standard:
- PSR2
whitelist_patterns: ['/^src(.*)/', '/^app(.*)/', '/^config(.*)/', '/^test(.*)/']
ignore_patterns: ['*.blade.php']
metadata: { priority: 400 }
exclude: ['Generic.Files.LineLength']
# phpstan:
# ignore_patterns: ['/^tests(.*)/', '/^database(.*)/', '/^config(.*)/', '/^routes(.*)/']
# configuration: phpstan.neon
# level: 5
# metadata: { priority: 300 }
# phpcpd:
# directory: ['src']
# exclude: ['vendor']
# fuzzy: false
# min_lines: 5
# min_tokens: 70
# triggered_by: ['php']
phpmd:
whitelist_patterns: ['/^src(.*)/', '/^app(.*)/', '/^config(.*)/', '/^recources(.*)/']
ruleset: ['ruleset.xml']
report_format: ansi
metadata: { priority: 200 }
phpunit:
metadata: { priority: 100 }
phpcsfixer:
allow_risky: true
config: .php-cs-fixer.php
using_cache: false
config_contains_finder: true
verbose: true
diff: false
triggered_by: ['php']
metadata: { priority: 500 }
psalm:
config: psalm.xml
ignore_patterns: ['*.blade.php']
no_cache: true
output_format: console
threads: 1
triggered_by: ['php']
show_info: false
metadata: { priority: 400 }