-
-
Notifications
You must be signed in to change notification settings - Fork 84
/
Copy pathphpstan-baseline.neon
340 lines (285 loc) · 13.1 KB
/
phpstan-baseline.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
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
parameters:
ignoreErrors:
-
message: '#^Cognitive complexity for "AOE\\Crawler\\Command\\BuildQueueCommand\:\:execute\(\)" is 23, keep it under 21$#'
identifier: complexity.functionLike
count: 1
path: Classes/Command/BuildQueueCommand.php
-
message: '#^Constant AOE\\Crawler\\Command\\ProcessQueueCommand\:\:CLI_STATUS_POLLABLE_PROCESSED is unused\.$#'
identifier: classConstant.unused
count: 1
path: Classes/Command/ProcessQueueCommand.php
-
message: '#^Cannot access offset ''ShowFeVars'' on array\|object\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 1
path: Classes/Controller/Backend/BackendModuleCrawlerLogController.php
-
message: '#^Cannot access offset ''ShowResultLog'' on array\|object\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 1
path: Classes/Controller/Backend/BackendModuleCrawlerLogController.php
-
message: '#^Cannot access offset ''_csv'' on array\|object\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 1
path: Classes/Controller/Backend/BackendModuleCrawlerLogController.php
-
message: '#^Cannot access offset ''_flush'' on array\|object\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 1
path: Classes/Controller/Backend/BackendModuleCrawlerLogController.php
-
message: '#^Cannot access offset ''_flush_all'' on array\|object\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 1
path: Classes/Controller/Backend/BackendModuleCrawlerLogController.php
-
message: '#^Cannot access offset ''displayLog'' on array\|object\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 1
path: Classes/Controller/Backend/BackendModuleCrawlerLogController.php
-
message: '#^Cannot access offset ''itemsPerPage'' on array\|object\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 1
path: Classes/Controller/Backend/BackendModuleCrawlerLogController.php
-
message: '#^Cannot access offset ''logDepth'' on array\|object\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 1
path: Classes/Controller/Backend/BackendModuleCrawlerLogController.php
-
message: '#^Cannot access offset ''parameters'' on array\<string, mixed\>\|false\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 2
path: Classes/Controller/Backend/BackendModuleCrawlerLogController.php
-
message: '#^Cannot access offset ''qid_details'' on array\|object\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 1
path: Classes/Controller/Backend/BackendModuleCrawlerLogController.php
-
message: '#^Cannot access offset ''qid_read'' on array\|object\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 1
path: Classes/Controller/Backend/BackendModuleCrawlerLogController.php
-
message: '#^Cannot access offset ''setID'' on array\|object\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 3
path: Classes/Controller/Backend/BackendModuleCrawlerLogController.php
-
message: '#^Call to function is_object\(\) with AOE\\Crawler\\Hooks\\CrawlerHookInterface will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType
count: 1
path: Classes/Controller/Backend/BackendModuleCrawlerProcessController.php
-
message: '#^Cannot access offset ''action'' on array\|object\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 1
path: Classes/Controller/Backend/BackendModuleCrawlerProcessController.php
-
message: '#^Cannot access offset ''processListMode'' on array\|object\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 1
path: Classes/Controller/Backend/BackendModuleCrawlerProcessController.php
-
message: '#^Unable to resolve the template type T in call to method static method TYPO3\\CMS\\Core\\Utility\\GeneralUtility\:\:makeInstance\(\)$#'
identifier: argument.templateType
count: 1
path: Classes/Controller/Backend/BackendModuleCrawlerProcessController.php
-
message: '#^Call to function is_array\(\) with string will always evaluate to false\.$#'
identifier: function.impossibleType
count: 1
path: Classes/Controller/Backend/BackendModuleStartCrawlingController.php
-
message: '#^Cannot access offset ''_crawl'' on array\|object\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 1
path: Classes/Controller/Backend/BackendModuleStartCrawlingController.php
-
message: '#^Cannot access offset ''_download'' on array\|object\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 1
path: Classes/Controller/Backend/BackendModuleStartCrawlingController.php
-
message: '#^Cannot access offset ''configurationSelection'' on array\|object\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 1
path: Classes/Controller/Backend/BackendModuleStartCrawlingController.php
-
message: '#^Cannot access offset ''crawlingDepth'' on array\|object\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 1
path: Classes/Controller/Backend/BackendModuleStartCrawlingController.php
-
message: '#^Cannot access offset ''tstamp'' on array\|object\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 2
path: Classes/Controller/Backend/BackendModuleStartCrawlingController.php
-
message: '#^Result of \|\| is always true\.$#'
identifier: booleanOr.alwaysTrue
count: 1
path: Classes/Controller/Backend/BackendModuleStartCrawlingController.php
-
message: '#^Call to function is_array\(\) with array will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType
count: 1
path: Classes/Controller/Backend/Helper/ResultHandler.php
-
message: '#^Method AOE\\Crawler\\Controller\\Backend\\Helper\\UrlBuilder\:\:getBackendModuleUrl\(\) should return TYPO3\\CMS\\Core\\Http\\Uri but returns Psr\\Http\\Message\\UriInterface\.$#'
identifier: return.type
count: 1
path: Classes/Controller/Backend/Helper/UrlBuilder.php
-
message: '#^Call to function is_array\(\) with array will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType
count: 2
path: Classes/Controller/CrawlerController.php
-
message: '#^Class cognitive complexity is 97, keep it under 35$#'
identifier: complexity.classLike
count: 1
path: Classes/Controller/CrawlerController.php
-
message: '#^Parameter \#1 \$array \(array\{\}\|array\{0\: non\-falsy\-string, 1\?\: non\-falsy\-string\}\) to function array_filter does not contain falsy values, the array will always stay the same\.$#'
identifier: arrayFilter.same
count: 1
path: Classes/Controller/CrawlerController.php
-
message: '#^Parameter \#1 \$pageUid of static method TYPO3\\CMS\\Backend\\Utility\\BackendUtility\:\:getPagesTSconfig\(\) expects int, string given\.$#'
identifier: argument.type
count: 1
path: Classes/Controller/CrawlerController.php
-
message: '#^Property AOE\\Crawler\\Controller\\CrawlerController\:\:\$crawler is never read, only written\.$#'
identifier: property.onlyWritten
count: 1
path: Classes/Controller/CrawlerController.php
-
message: '#^Call to an undefined method object\:\:crawler_execute\(\)\.$#'
identifier: method.notFound
count: 1
path: Classes/CrawlStrategy/CallbackExecutionStrategy.php
-
message: '#^Method AOE\\Crawler\\CrawlStrategy\\CallbackExecutionStrategy\:\:fetchByCallback\(\) has no return type specified\.$#'
identifier: missingType.return
count: 1
path: Classes/CrawlStrategy/CallbackExecutionStrategy.php
-
message: '#^Parameter \#1 \$className of static method TYPO3\\CMS\\Core\\Utility\\GeneralUtility\:\:makeInstance\(\) expects class\-string\<object\>, string given\.$#'
identifier: argument.type
count: 1
path: Classes/CrawlStrategy/CallbackExecutionStrategy.php
-
message: '#^Unable to resolve the template type T in call to method static method TYPO3\\CMS\\Core\\Utility\\GeneralUtility\:\:makeInstance\(\)$#'
identifier: argument.templateType
count: 1
path: Classes/CrawlStrategy/CallbackExecutionStrategy.php
-
message: '#^Call to function is_array\(\) with array will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType
count: 1
path: Classes/CrawlStrategy/CrawlStrategyFactory.php
-
message: '#^Method AOE\\Crawler\\CrawlStrategy\\CrawlStrategyInterface\:\:fetchUrlContents\(\) has no return type specified\.$#'
identifier: missingType.return
count: 1
path: Classes/CrawlStrategy/CrawlStrategyInterface.php
-
message: '#^Call to function is_array\(\) with array will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType
count: 1
path: Classes/CrawlStrategy/SubProcessExecutionStrategy.php
-
message: '#^Call to function is_array\(\) with array\{scheme\: ''''\|''http''\|''https'', host\?\: string, port\?\: int\<0, 65535\>, user\?\: string, pass\?\: string, path\?\: string, query\?\: string, fragment\?\: string\} will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType
count: 1
path: Classes/CrawlStrategy/SubProcessExecutionStrategy.php
-
message: '#^Method AOE\\Crawler\\CrawlStrategy\\SubProcessExecutionStrategy\:\:executeShellCommand\(\) should return string\|null but returns string\|false\|null\.$#'
identifier: return.type
count: 1
path: Classes/CrawlStrategy/SubProcessExecutionStrategy.php
-
message: '#^Instanceof between AOE\\Crawler\\Domain\\Model\\Process and AOE\\Crawler\\Domain\\Model\\Process will always evaluate to true\.$#'
identifier: instanceof.alwaysTrue
count: 2
path: Classes/Domain/Model/ProcessCollection.php
-
message: '''
#^Call to deprecated method getExpressionBuilder\(\) of class TYPO3\\CMS\\Core\\Database\\Connection\:
Use \{@see createExpressionBuilder\(\)\} instead\.$#
'''
identifier: method.deprecated
count: 1
path: Classes/Domain/Repository/QueueRepository.php
-
message: '#^Method AOE\\Crawler\\Event\\ModifySkipPageEvent\:\:isSkipped\(\) should return string\|false but returns bool\|string\.$#'
identifier: return.type
count: 1
path: Classes/Event/ModifySkipPageEvent.php
-
message: '#^Call to function is_array\(\) with array will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType
count: 2
path: Classes/Hooks/ProcessCleanUpHook.php
-
message: '#^Parameter \#1 \$array \(list\<non\-empty\-string\>\) of array_values is already a list, call has no effect\.$#'
identifier: arrayValues.list
count: 1
path: Classes/Hooks/ProcessCleanUpHook.php
-
message: '#^Call to function is_array\(\) with non\-empty\-array will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType
count: 1
path: Classes/Middleware/FrontendUserAuthenticator.php
-
message: '#^Cannot access offset ''alturl'' on array\|bool\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 1
path: Classes/Service/BackendModuleLogService.php
-
message: '#^Cannot access offset ''procInstructions'' on array\|bool\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 1
path: Classes/Service/BackendModuleLogService.php
-
message: '#^Method AOE\\Crawler\\Service\\BackendModuleLogService\:\:addRows\(\) should return non\-empty\-list\<array\{titleRowSpan\: int\<1, max\>, colSpan\: int, title\: string, noEntries\?\: string, trClass\?\: string, qid\?\: array\{link\: TYPO3\\CMS\\Core\\Http\\Uri, link\-text\: string\}, refresh\?\: array\{link\: TYPO3\\CMS\\Core\\Http\\Uri, link\-text\: TYPO3\\CMS\\Core\\Imaging\\Icon, warning\: string\|TYPO3\\CMS\\Core\\Imaging\\Icon\}, columns\?\: array\{url\: mixed, scheduled\: string, exec_time\: string, result_log\: string, result_status\: string, feUserGroupList\: string, procInstructions\: string, set_id\: string, \.\.\.\}\}\> but returns array\{non\-empty\-list\<array\>, array\}\.$#'
identifier: return.type
count: 1
path: Classes/Service/BackendModuleLogService.php
-
message: '#^Parameter \#1 \$resultData of static method AOE\\Crawler\\Controller\\Backend\\Helper\\ResultHandler\:\:getResFeVars\(\) expects array, array\|true given\.$#'
identifier: argument.type
count: 1
path: Classes/Service/BackendModuleLogService.php
-
message: '#^Call to function is_array\(\) with array\<non\-empty\-array\<string, mixed\>\> will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType
count: 1
path: Classes/Service/ConfigurationService.php
-
message: '#^Class cognitive complexity is 87, keep it under 35$#'
identifier: complexity.classLike
count: 1
path: Classes/Service/ConfigurationService.php
-
message: '#^Offset ''usergroup_cached_list'' might not exist on array\|null\.$#'
identifier: offsetAccess.notFound
count: 1
path: Classes/Service/ConfigurationService.php
-
message: '#^Call to function is_array\(\) with array will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType
count: 1
path: Classes/Service/QueueService.php
-
message: '#^Parameter \#1 \$row of static method TYPO3\\CMS\\Core\\Utility\\CsvUtility\:\:csvValues\(\) expects array\<string\>, list\<int\|string\> given\.$#'
identifier: argument.type
count: 1
path: Classes/Writer/FileWriter/CsvWriter/CrawlerCsvWriter.php