-
Notifications
You must be signed in to change notification settings - Fork 41
/
extension.neon
276 lines (252 loc) · 6.62 KB
/
extension.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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
# Default parameters
parameters:
phpat:
ignore_doc_comments: false
ignore_built_in_classes: false
show_rule_names: false
services:
- PHPat\Test\TestExtractor
- PHPat\Test\TestParser
- PHPat\Test\RuleValidator
- PHPat\Statement\Builder\StatementBuilderFactory
- PHPat\Configuration(
ignore_doc_comments: %phpat.ignore_doc_comments%,
ignore_built_in_classes: %phpat.ignore_built_in_classes%,
show_rule_names: %phpat.show_rule_names%,
)
# # # # # DECLARATION RULES # # # # #
# ShouldBeNamed rules
-
class: PHPat\Rule\Assertion\Declaration\ShouldBeNamed\ClassnameRule
tags:
- phpstan.rules.rule
# ShouldBeReadonly rules
-
class: PHPat\Rule\Assertion\Declaration\ShouldBeReadonly\IsReadonlyRule
tags:
- phpstan.rules.rule
# ShouldNotBeReadonly rules
-
class: PHPat\Rule\Assertion\Declaration\ShouldNotBeReadonly\IsReadonlyRule
tags:
- phpstan.rules.rule
# ShouldBeAbstract rules
-
class: PHPat\Rule\Assertion\Declaration\ShouldBeAbstract\AbstractRule
tags:
- phpstan.rules.rule
# ShouldNotBeAbstract rules
-
class: PHPat\Rule\Assertion\Declaration\ShouldNotBeAbstract\AbstractRule
tags:
- phpstan.rules.rule
# ShouldBeFinal rules
-
class: PHPat\Rule\Assertion\Declaration\ShouldBeFinal\IsFinalRule
tags:
- phpstan.rules.rule
# ShouldNotBeFinal rules
-
class: PHPat\Rule\Assertion\Declaration\ShouldNotBeFinal\IsFinalRule
tags:
- phpstan.rules.rule
# ShouldHaveOnlyOnePublicMethod rules
-
class: PHPat\Rule\Assertion\Declaration\ShouldHaveOnlyOnePublicMethod\HasOnlyOnePublicMethodRule
tags:
- phpstan.rules.rule
# ShouldBeInterface rules
-
class: PHPat\Rule\Assertion\Declaration\ShouldBeInterface\IsInterfaceRule
tags:
- phpstan.rules.rule
# ShouldNotExist rules
-
class: PHPat\Rule\Assertion\Declaration\ShouldNotExist\ExistsRule
tags:
- phpstan.rules.rule
# # # # # RELATION RULES # # # # #
# ShouldImplement rules
-
class: PHPat\Rule\Assertion\Relation\ShouldImplement\ImplementedInterfacesRule
tags:
- phpstan.rules.rule
# ShouldExtend rules
-
class: PHPat\Rule\Assertion\Relation\ShouldExtend\ParentClassRule
tags:
- phpstan.rules.rule
# ShouldInclude rules
-
class: PHPat\Rule\Assertion\Relation\ShouldInclude\IncludedTraitsRule
tags:
- phpstan.rules.rule
# ShouldNotDepend rules
-
class: PHPat\Rule\Assertion\Relation\ShouldNotDepend\DirectInterfacesRule
tags:
- phpstan.rules.rule
-
class: PHPat\Rule\Assertion\Relation\ShouldNotDepend\ParentClassRule
tags:
- phpstan.rules.rule
-
class: PHPat\Rule\Assertion\Relation\ShouldNotDepend\ClassAttributeRule
tags:
- phpstan.rules.rule
-
class: PHPat\Rule\Assertion\Relation\ShouldNotDepend\ClassPropertyRule
tags:
- phpstan.rules.rule
-
class: PHPat\Rule\Assertion\Relation\ShouldNotDepend\ConstantUseRule
tags:
- phpstan.rules.rule
-
class: PHPat\Rule\Assertion\Relation\ShouldNotDepend\DocMethodTagRule
tags:
- phpstan.rules.rule
-
class: PHPat\Rule\Assertion\Relation\ShouldNotDepend\DocMixinTagRule
tags:
- phpstan.rules.rule
-
class: PHPat\Rule\Assertion\Relation\ShouldNotDepend\DocParamTagRule
tags:
- phpstan.rules.rule
-
class: PHPat\Rule\Assertion\Relation\ShouldNotDepend\DocPropertyTagRule
tags:
- phpstan.rules.rule
-
class: PHPat\Rule\Assertion\Relation\ShouldNotDepend\DocReturnTagRule
tags:
- phpstan.rules.rule
-
class: PHPat\Rule\Assertion\Relation\ShouldNotDepend\DocThrowsTagRule
tags:
- phpstan.rules.rule
-
class: PHPat\Rule\Assertion\Relation\ShouldNotDepend\DocVarTagRule
tags:
- phpstan.rules.rule
-
class: PHPat\Rule\Assertion\Relation\ShouldNotDepend\MethodParamRule
tags:
- phpstan.rules.rule
-
class: PHPat\Rule\Assertion\Relation\ShouldNotDepend\MethodReturnRule
tags:
- phpstan.rules.rule
-
class: PHPat\Rule\Assertion\Relation\ShouldNotDepend\NewRule
tags:
- phpstan.rules.rule
-
class: PHPat\Rule\Assertion\Relation\ShouldNotDepend\StaticMethodRule
tags:
- phpstan.rules.rule
-
class: PHPat\Rule\Assertion\Relation\ShouldNotDepend\CatchBlockRule
tags:
- phpstan.rules.rule
# CanOnlyDepend rules
-
class: PHPat\Rule\Assertion\Relation\CanOnlyDepend\DirectInterfacesRule
tags:
- phpstan.rules.rule
-
class: PHPat\Rule\Assertion\Relation\CanOnlyDepend\ParentClassRule
tags:
- phpstan.rules.rule
-
class: PHPat\Rule\Assertion\Relation\CanOnlyDepend\ClassAttributeRule
tags:
- phpstan.rules.rule
-
class: PHPat\Rule\Assertion\Relation\CanOnlyDepend\ClassPropertyRule
tags:
- phpstan.rules.rule
-
class: PHPat\Rule\Assertion\Relation\CanOnlyDepend\ConstantUseRule
tags:
- phpstan.rules.rule
-
class: PHPat\Rule\Assertion\Relation\CanOnlyDepend\DocMethodTagRule
tags:
- phpstan.rules.rule
-
class: PHPat\Rule\Assertion\Relation\CanOnlyDepend\DocMixinTagRule
tags:
- phpstan.rules.rule
-
class: PHPat\Rule\Assertion\Relation\CanOnlyDepend\DocParamTagRule
tags:
- phpstan.rules.rule
-
class: PHPat\Rule\Assertion\Relation\CanOnlyDepend\DocPropertyTagRule
tags:
- phpstan.rules.rule
-
class: PHPat\Rule\Assertion\Relation\CanOnlyDepend\DocReturnTagRule
tags:
- phpstan.rules.rule
-
class: PHPat\Rule\Assertion\Relation\CanOnlyDepend\DocThrowsTagRule
tags:
- phpstan.rules.rule
-
class: PHPat\Rule\Assertion\Relation\CanOnlyDepend\DocVarTagRule
tags:
- phpstan.rules.rule
-
class: PHPat\Rule\Assertion\Relation\CanOnlyDepend\MethodParamRule
tags:
- phpstan.rules.rule
-
class: PHPat\Rule\Assertion\Relation\CanOnlyDepend\MethodReturnRule
tags:
- phpstan.rules.rule
-
class: PHPat\Rule\Assertion\Relation\CanOnlyDepend\NewRule
tags:
- phpstan.rules.rule
-
class: PHPat\Rule\Assertion\Relation\CanOnlyDepend\StaticMethodRule
tags:
- phpstan.rules.rule
-
class: PHPat\Rule\Assertion\Relation\CanOnlyDepend\CatchBlockRule
tags:
- phpstan.rules.rule
# ShouldNotConstruct rules
-
class: PHPat\Rule\Assertion\Relation\ShouldNotConstruct\NewRule
tags:
- phpstan.rules.rule
# ShouldNotExtend rules
-
class: PHPat\Rule\Assertion\Relation\ShouldNotExtend\ParentClassRule
tags:
- phpstan.rules.rule
# ShouldNotImplement rules
-
class: PHPat\Rule\Assertion\Relation\ShouldNotImplement\ImplementedInterfacesRule
tags:
- phpstan.rules.rule
# ShouldNotInclude rules
-
class: PHPat\Rule\Assertion\Relation\ShouldNotInclude\IncludedTraitsRule
tags:
- phpstan.rules.rule
# ShouldApplyAttribute rules
-
class: PHPat\Rule\Assertion\Relation\ShouldApplyAttribute\ClassAttributeRule
tags:
- phpstan.rules.rule
parametersSchema:
phpat: structure([
ignore_doc_comments: bool(),
ignore_built_in_classes: bool(),
show_rule_names: bool(),
])