File: rules.neon

package info (click to toggle)
phpunit-code-unit 3.0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 32,612 kB
  • sloc: php: 10,779; xml: 62; makefile: 16
file content (263 lines) | stat: -rw-r--r-- 8,904 bytes parent folder | download
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
conditionalTags:
	Ergebnis\PHPStan\Rules\Classes\FinalRule:
		phpstan.rules.rule: %ergebnis.final.enabled%
	Ergebnis\PHPStan\Rules\Classes\NoExtendsRule:
		phpstan.rules.rule: %ergebnis.noExtends.enabled%
	Ergebnis\PHPStan\Rules\Classes\PHPUnit\Framework\TestCaseWithSuffixRule:
		phpstan.rules.rule: %ergebnis.testCaseWithSuffix.enabled%
	Ergebnis\PHPStan\Rules\Closures\NoNullableReturnTypeDeclarationRule:
		phpstan.rules.rule: %ergebnis.noNullableReturnTypeDeclaration.enabled%
	Ergebnis\PHPStan\Rules\Closures\NoParameterPassedByReferenceRule:
		phpstan.rules.rule: %ergebnis.noParameterPassedByReference.enabled%
	Ergebnis\PHPStan\Rules\Closures\NoParameterWithNullableTypeDeclarationRule:
		phpstan.rules.rule: %ergebnis.noParameterWithNullableTypeDeclaration.enabled%
	Ergebnis\PHPStan\Rules\Expressions\NoAssignByReferenceRule:
		phpstan.rules.rule: %ergebnis.noAssignByReference.enabled%
	Ergebnis\PHPStan\Rules\Expressions\NoCompactRule:
		phpstan.rules.rule: %ergebnis.noCompact.enabled%
	Ergebnis\PHPStan\Rules\Expressions\NoErrorSuppressionRule:
		phpstan.rules.rule: %ergebnis.noErrorSuppression.enabled%
	Ergebnis\PHPStan\Rules\Expressions\NoEvalRule:
		phpstan.rules.rule: %ergebnis.noEval.enabled%
	Ergebnis\PHPStan\Rules\Expressions\NoIssetRule:
		phpstan.rules.rule: %ergebnis.noIsset.enabled%
	Ergebnis\PHPStan\Rules\Files\DeclareStrictTypesRule:
		phpstan.rules.rule: %ergebnis.declareStrictTypes.enabled%
	Ergebnis\PHPStan\Rules\Functions\NoNullableReturnTypeDeclarationRule:
		phpstan.rules.rule: %ergebnis.noNullableReturnTypeDeclaration.enabled%
	Ergebnis\PHPStan\Rules\Functions\NoParameterPassedByReferenceRule:
		phpstan.rules.rule: %ergebnis.noParameterPassedByReference.enabled%
	Ergebnis\PHPStan\Rules\Functions\NoParameterWithNullableTypeDeclarationRule:
		phpstan.rules.rule: %ergebnis.noParameterWithNullableTypeDeclaration.enabled%
	Ergebnis\PHPStan\Rules\Functions\NoParameterWithNullDefaultValueRule:
		phpstan.rules.rule: %ergebnis.noParameterWithNullDefaultValue.enabled%
	Ergebnis\PHPStan\Rules\Functions\NoReturnByReferenceRule:
		phpstan.rules.rule: %ergebnis.noReturnByReference.enabled%
	Ergebnis\PHPStan\Rules\Methods\FinalInAbstractClassRule:
		phpstan.rules.rule: %ergebnis.finalInAbstractClass.enabled%
	Ergebnis\PHPStan\Rules\Methods\NoConstructorParameterWithDefaultValueRule:
		phpstan.rules.rule: %ergebnis.noConstructorParameterWithDefaultValue.enabled%
	Ergebnis\PHPStan\Rules\Methods\NoNullableReturnTypeDeclarationRule:
		phpstan.rules.rule: %ergebnis.noNullableReturnTypeDeclaration.enabled%
	Ergebnis\PHPStan\Rules\Methods\NoParameterPassedByReferenceRule:
		phpstan.rules.rule: %ergebnis.noParameterPassedByReference.enabled%
	Ergebnis\PHPStan\Rules\Methods\NoParameterWithContainerTypeDeclarationRule:
		phpstan.rules.rule: %ergebnis.noParameterWithContainerTypeDeclaration.enabled%
	Ergebnis\PHPStan\Rules\Methods\NoParameterWithNullableTypeDeclarationRule:
		phpstan.rules.rule: %ergebnis.noParameterWithNullableTypeDeclaration.enabled%
	Ergebnis\PHPStan\Rules\Methods\NoParameterWithNullDefaultValueRule:
		phpstan.rules.rule: %ergebnis.noParameterWithNullDefaultValue.enabled%
	Ergebnis\PHPStan\Rules\Methods\NoReturnByReferenceRule:
		phpstan.rules.rule: %ergebnis.noReturnByReference.enabled%
	Ergebnis\PHPStan\Rules\Methods\PrivateInFinalClassRule:
		phpstan.rules.rule: %ergebnis.privateInFinalClass.enabled%
	Ergebnis\PHPStan\Rules\Statements\NoSwitchRule:
		phpstan.rules.rule: %ergebnis.noSwitch.enabled%

parameters:
	ergebnis:
		allRules: true
		declareStrictTypes:
			enabled: %ergebnis.allRules%
		final:
			allowAbstractClasses: true
			classesNotRequiredToBeAbstractOrFinal: []
			enabled: %ergebnis.allRules%
		finalInAbstractClass:
			enabled: %ergebnis.allRules%
		noAssignByReference:
			enabled: %ergebnis.allRules%
		noCompact:
			enabled: %ergebnis.allRules%
		noConstructorParameterWithDefaultValue:
			enabled: %ergebnis.allRules%
		noErrorSuppression:
			enabled: %ergebnis.allRules%
		noEval:
			enabled: %ergebnis.allRules%
		noExtends:
			classesAllowedToBeExtended: []
			enabled: %ergebnis.allRules%
		noIsset:
			enabled: %ergebnis.allRules%
		noNullableReturnTypeDeclaration:
			enabled: %ergebnis.allRules%
		noParameterPassedByReference:
			enabled: %ergebnis.allRules%
		noParameterWithContainerTypeDeclaration:
			enabled: %ergebnis.allRules%
			interfacesImplementedByContainers:
				- Psr\Container\ContainerInterface
			methodsAllowedToUseContainerTypeDeclarations: []
		noParameterWithNullableTypeDeclaration:
			enabled: %ergebnis.allRules%
		noParameterWithNullDefaultValue:
			enabled: %ergebnis.allRules%
		noReturnByReference:
			enabled: %ergebnis.allRules%
		noSwitch:
			enabled: %ergebnis.allRules%
		privateInFinalClass:
			enabled: %ergebnis.allRules%
		testCaseWithSuffix:
			enabled: %ergebnis.allRules%

parametersSchema:
	ergebnis: structure([
		allRules: bool()
		declareStrictTypes: structure([
			enabled: bool(),
		])
		final: structure([
			allowAbstractClasses: bool()
			classesNotRequiredToBeAbstractOrFinal: listOf(string())
			enabled: bool(),
		])
		finalInAbstractClass: structure([
			enabled: bool(),
		])
		noAssignByReference: structure([
			enabled: bool(),
		])
		noCompact: structure([
			enabled: bool(),
		])
		noConstructorParameterWithDefaultValue: structure([
			enabled: bool(),
		])
		noErrorSuppression: structure([
			enabled: bool(),
		])
		noExtends: structure([
			classesAllowedToBeExtended: listOf(string())
			enabled: bool(),
		])
		noEval: structure([
			enabled: bool(),
		])
		noIsset: structure([
			enabled: bool(),
		])
		noNullableReturnTypeDeclaration: structure([
			enabled: bool(),
		])
		noParameterPassedByReference: structure([
			enabled: bool(),
		])
		noParameterWithContainerTypeDeclaration: structure([
			enabled: bool(),
			interfacesImplementedByContainers: listOf(string())
			methodsAllowedToUseContainerTypeDeclarations: listOf(string())
		])
		noParameterWithNullableTypeDeclaration: structure([
			enabled: bool(),
		])
		noParameterWithNullDefaultValue: structure([
			enabled: bool(),
		])
		noReturnByReference: structure([
			enabled: bool(),
		])
		noSwitch: structure([
			enabled: bool(),
		])
		privateInFinalClass: structure([
			enabled: bool(),
		])
		testCaseWithSuffix: structure([
			enabled: bool(),
		])
	])

services:
	-
		class: Ergebnis\PHPStan\Rules\Analyzer

	-
		class: Ergebnis\PHPStan\Rules\Classes\FinalRule
		arguments:
			allowAbstractClasses: %ergebnis.final.allowAbstractClasses%
			classesNotRequiredToBeAbstractOrFinal: %ergebnis.final.classesNotRequiredToBeAbstractOrFinal%

	-
		class: Ergebnis\PHPStan\Rules\Classes\NoExtendsRule
		arguments:
			classesAllowedToBeExtended: %ergebnis.noExtends.classesAllowedToBeExtended%

	-
		class: Ergebnis\PHPStan\Rules\Classes\PHPUnit\Framework\TestCaseWithSuffixRule

	-
		class: Ergebnis\PHPStan\Rules\Closures\NoNullableReturnTypeDeclarationRule

	-
		class: Ergebnis\PHPStan\Rules\Closures\NoParameterPassedByReferenceRule

	-
		class: Ergebnis\PHPStan\Rules\Closures\NoParameterWithNullableTypeDeclarationRule

	-
		class: Ergebnis\PHPStan\Rules\Expressions\NoAssignByReferenceRule

	-
		class: Ergebnis\PHPStan\Rules\Expressions\NoCompactRule

	-
		class: Ergebnis\PHPStan\Rules\Expressions\NoErrorSuppressionRule

	-
		class: Ergebnis\PHPStan\Rules\Expressions\NoEvalRule

	-
		class: Ergebnis\PHPStan\Rules\Expressions\NoIssetRule

	-
		class: Ergebnis\PHPStan\Rules\Files\DeclareStrictTypesRule

	-
		class: Ergebnis\PHPStan\Rules\Functions\NoNullableReturnTypeDeclarationRule

	-
		class: Ergebnis\PHPStan\Rules\Functions\NoParameterPassedByReferenceRule

	-
		class: Ergebnis\PHPStan\Rules\Functions\NoParameterWithNullableTypeDeclarationRule

	-
		class: Ergebnis\PHPStan\Rules\Functions\NoParameterWithNullDefaultValueRule

	-
		class: Ergebnis\PHPStan\Rules\Functions\NoReturnByReferenceRule

	-
		class: Ergebnis\PHPStan\Rules\Methods\FinalInAbstractClassRule

	-
		class: Ergebnis\PHPStan\Rules\Methods\NoConstructorParameterWithDefaultValueRule

	-
		class: Ergebnis\PHPStan\Rules\Methods\NoNullableReturnTypeDeclarationRule

	-
		class: Ergebnis\PHPStan\Rules\Methods\NoParameterPassedByReferenceRule

	-
		class: Ergebnis\PHPStan\Rules\Methods\NoParameterWithContainerTypeDeclarationRule
		arguments:
			interfacesImplementedByContainers: %ergebnis.noParameterWithContainerTypeDeclaration.interfacesImplementedByContainers%
			methodsAllowedToUseContainerTypeDeclarations: %ergebnis.noParameterWithContainerTypeDeclaration.methodsAllowedToUseContainerTypeDeclarations%

	-
		class: Ergebnis\PHPStan\Rules\Methods\NoParameterWithNullableTypeDeclarationRule

	-
		class: Ergebnis\PHPStan\Rules\Methods\NoParameterWithNullDefaultValueRule

	-
		class: Ergebnis\PHPStan\Rules\Methods\NoReturnByReferenceRule

	-
		class: Ergebnis\PHPStan\Rules\Methods\PrivateInFinalClassRule

	-
		class: Ergebnis\PHPStan\Rules\Statements\NoSwitchRule