-
Notifications
You must be signed in to change notification settings - Fork 9
/
rules.neon
149 lines (132 loc) · 4.55 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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
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\VendorUsageProvider
tags:
- shipmonk.deadCode.memberUsageProvider
arguments:
enabled: %shipmonkDeadCode.usageProviders.vendor.enabled%
-
class: ShipMonk\PHPStan\DeadCode\Provider\ReflectionUsageProvider
tags:
- shipmonk.deadCode.memberUsageProvider
arguments:
enabled: %shipmonkDeadCode.usageProviders.reflection.enabled%
-
class: ShipMonk\PHPStan\DeadCode\Provider\PhpUnitUsageProvider
tags:
- shipmonk.deadCode.memberUsageProvider
arguments:
enabled: %shipmonkDeadCode.usageProviders.phpunit.enabled%
-
class: ShipMonk\PHPStan\DeadCode\Provider\SymfonyUsageProvider
tags:
- shipmonk.deadCode.memberUsageProvider
arguments:
enabled: %shipmonkDeadCode.usageProviders.symfony.enabled%
-
class: ShipMonk\PHPStan\DeadCode\Provider\DoctrineUsageProvider
tags:
- shipmonk.deadCode.memberUsageProvider
arguments:
enabled: %shipmonkDeadCode.usageProviders.doctrine.enabled%
-
class: ShipMonk\PHPStan\DeadCode\Provider\PhpStanUsageProvider
tags:
- shipmonk.deadCode.memberUsageProvider
arguments:
enabled: %shipmonkDeadCode.usageProviders.phpstan.enabled%
-
class: ShipMonk\PHPStan\DeadCode\Provider\NetteUsageProvider
tags:
- shipmonk.deadCode.memberUsageProvider
arguments:
enabled: %shipmonkDeadCode.usageProviders.nette.enabled%
-
class: ShipMonk\PHPStan\DeadCode\Collector\MethodCallCollector
tags:
- phpstan.collector
arguments:
trackMixedAccess: %shipmonkDeadCode.trackMixedAccess%
-
class: ShipMonk\PHPStan\DeadCode\Collector\ConstantFetchCollector
tags:
- phpstan.collector
arguments:
trackMixedAccess: %shipmonkDeadCode.trackMixedAccess%
-
class: ShipMonk\PHPStan\DeadCode\Collector\ClassDefinitionCollector
tags:
- phpstan.collector
-
class: ShipMonk\PHPStan\DeadCode\Collector\ProvidedUsagesCollector
tags:
- phpstan.collector
arguments:
memberUsageProviders: tagged(shipmonk.deadCode.memberUsageProvider)
-
class: ShipMonk\PHPStan\DeadCode\Rule\DeadCodeRule
tags:
- phpstan.rules.rule
- phpstan.diagnoseExtension
arguments:
reportTransitivelyDeadMethodAsSeparateError: %shipmonkDeadCode.reportTransitivelyDeadMethodAsSeparateError%
trackMixedAccess: %shipmonkDeadCode.trackMixedAccess%
-
class: ShipMonk\PHPStan\DeadCode\Compatibility\BackwardCompatibilityChecker
arguments:
servicesWithOldTag: tagged(shipmonk.deadCode.entrypointProvider)
parameters:
shipmonkDeadCode:
trackMixedAccess: true
reportTransitivelyDeadMethodAsSeparateError: false
usageProviders:
vendor:
enabled: true
reflection:
enabled: true
phpstan:
enabled: true
phpunit:
enabled: null
symfony:
enabled: null
configDir: null
doctrine:
enabled: null
nette:
enabled: null
parametersSchema:
shipmonkDeadCode: structure([
trackMixedAccess: bool()
reportTransitivelyDeadMethodAsSeparateError: bool()
usageProviders: structure([
vendor: structure([
enabled: bool()
])
reflection: structure([
enabled: bool()
])
phpstan: structure([
enabled: bool()
])
phpunit: structure([
enabled: schema(bool(), nullable())
])
symfony: structure([
enabled: schema(bool(), nullable())
configDir: schema(string(), nullable())
])
doctrine: structure([
enabled: schema(bool(), nullable())
])
nette: structure([
enabled: schema(bool(), nullable())
])
])
])