-
Notifications
You must be signed in to change notification settings - Fork 6
/
rules.neon
122 lines (109 loc) · 3.71 KB
/
rules.neon
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
110
111
112
113
114
115
116
117
118
119
120
121
122
services:
errorFormatter.removeDeadCode:
class: ShipMonk\PHPStan\DeadCode\Formatter\RemoveDeadCodeFormatter
-
class: ShipMonk\PHPStan\DeadCode\Hierarchy\ClassHierarchy
-
class: ShipMonk\PHPStan\DeadCode\Transformer\FileSystem
-
class: ShipMonk\PHPStan\DeadCode\Provider\VendorEntrypointProvider
tags:
- shipmonk.deadCode.entrypointProvider
arguments:
enabled: %shipmonkDeadCode.entrypoints.vendor.enabled%
-
class: ShipMonk\PHPStan\DeadCode\Provider\PhpUnitEntrypointProvider
tags:
- shipmonk.deadCode.entrypointProvider
arguments:
enabled: %shipmonkDeadCode.entrypoints.phpunit.enabled%
-
class: ShipMonk\PHPStan\DeadCode\Provider\SymfonyEntrypointProvider
tags:
- shipmonk.deadCode.entrypointProvider
arguments:
enabled: %shipmonkDeadCode.entrypoints.symfony.enabled%
-
class: ShipMonk\PHPStan\DeadCode\Provider\DoctrineEntrypointProvider
tags:
- shipmonk.deadCode.entrypointProvider
arguments:
enabled: %shipmonkDeadCode.entrypoints.doctrine.enabled%
-
class: ShipMonk\PHPStan\DeadCode\Provider\PhpStanEntrypointProvider
tags:
- shipmonk.deadCode.entrypointProvider
arguments:
enabled: %shipmonkDeadCode.entrypoints.phpstan.enabled%
-
class: ShipMonk\PHPStan\DeadCode\Provider\NetteEntrypointProvider
tags:
- shipmonk.deadCode.entrypointProvider
arguments:
enabled: %shipmonkDeadCode.entrypoints.nette.enabled%
-
class: ShipMonk\PHPStan\DeadCode\Collector\MethodCallCollector
tags:
- phpstan.collector
arguments:
trackCallsOnMixed: %shipmonkDeadCode.trackCallsOnMixed%
-
class: ShipMonk\PHPStan\DeadCode\Collector\ClassDefinitionCollector
tags:
- phpstan.collector
-
class: ShipMonk\PHPStan\DeadCode\Collector\EntrypointCollector
tags:
- phpstan.collector
arguments:
entrypointProviders: tagged(shipmonk.deadCode.entrypointProvider)
-
class: ShipMonk\PHPStan\DeadCode\Rule\DeadMethodRule
tags:
- phpstan.rules.rule
- phpstan.diagnoseExtension
arguments:
reportTransitivelyDeadMethodAsSeparateError: %shipmonkDeadCode.reportTransitivelyDeadMethodAsSeparateError%
trackCallsOnMixed: %shipmonkDeadCode.trackCallsOnMixed%
parameters:
shipmonkDeadCode:
trackCallsOnMixed: true
reportTransitivelyDeadMethodAsSeparateError: false
entrypoints:
vendor:
enabled: true
phpstan:
enabled: true
phpunit:
enabled: null
symfony:
enabled: null
doctrine:
enabled: null
nette:
enabled: null
parametersSchema:
shipmonkDeadCode: structure([
trackCallsOnMixed: bool()
reportTransitivelyDeadMethodAsSeparateError: bool()
entrypoints: structure([
vendor: structure([
enabled: bool()
])
phpstan: structure([
enabled: bool()
])
phpunit: structure([
enabled: schema(bool(), nullable())
])
symfony: structure([
enabled: schema(bool(), nullable())
])
doctrine: structure([
enabled: schema(bool(), nullable())
])
nette: structure([
enabled: schema(bool(), nullable())
])
])
])