forked from TYPO3/typo3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon
146 lines (137 loc) · 6.67 KB
/
phpstan.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
includes:
- vendor/friendsoftypo3/phpstan-typo3/extension.neon
- Build/phpstan.level8.neon
# Include bleeding edge rules if necessary but do not commit
# - vendor/phpstan/phpstan/conf/bleedingEdge.neon
parameters:
level: 1
# Set to true during local runs to find unmatched ignored errors. bamboo needs this to be set to false.
reportUnmatchedIgnoredErrors: false
paths:
- %currentWorkingDirectory%/typo3/sysext/
excludes_analyse:
- %currentWorkingDirectory%/typo3/sysext/*/Tests/*
- %currentWorkingDirectory%/typo3/sysext/*/Documentation/*
- %currentWorkingDirectory%/typo3/sysext/*/Resources/*
- %currentWorkingDirectory%/typo3/sysext/*/Configuration/*
ignoreErrors:
# ignored errors for level 0
- '#Undefined variable: \$_EXTKEY#'
-
message: '#Instantiated class Composer\\Util\\Filesystem not found\.#'
path: %currentWorkingDirectory%/typo3/sysext/core/Classes/Composer/CliEntryPoint.php
-
message: '#Parameter \$event of method [\w\\]+::\w+\(\) has invalid typehint type Composer\\Script\\Event\.#'
path: %currentWorkingDirectory%/typo3/sysext/*/Classes/Composer/*
-
message: "#^Access to undefined constant PDO\\:\\:SQLSRV_ENCODING_BINARY\\.$#"
count: 1
path: typo3/sysext/core/Classes/Database/Driver/PDOSqlsrv/Statement.php
-
message: "#^Access to undefined constant TYPO3\\\\CMS\\\\Core\\\\Type\\\\Enumeration\\:\\:__default\\.$#"
count: 1
path: typo3/sysext/core/Classes/Type/Enumeration.php
-
message: "#^Call to an undefined method TYPO3\\\\CMS\\\\Fluid\\\\Core\\\\Widget\\\\AbstractWidgetViewHelper\\:\\:getArguments\\(\\)\\.$#"
count: 1
path: typo3/sysext/fluid/Classes/Core/Widget/AbstractWidgetViewHelper.php
-
message: "#^Call to an undefined static method TYPO3Fluid\\\\Fluid\\\\Core\\\\ViewHelper\\\\AbstractViewHelper\\:\\:onClose\\(\\)\\.$#"
count: 1
path: typo3/sysext/fluid/Classes/Core/Widget/AbstractWidgetViewHelper.php
-
message: "#^Call to an undefined method TYPO3\\\\CMS\\\\Fluid\\\\Core\\\\Widget\\\\AbstractWidgetViewHelper\\:\\:getChildren\\(\\)\\.$#"
count: 1
path: typo3/sysext/fluid/Classes/Core/Widget/AbstractWidgetViewHelper.php
-
message: "#^Unsafe usage of new static\\(\\)\\.$#"
count: 1
path: typo3/sysext/core/Classes/Collection/AbstractRecordCollection.php
-
message: "#^Unsafe usage of new static\\(\\)\\.$#"
count: 1
path: typo3/sysext/core/Classes/Type/Enumeration.php
-
message: "#^Unsafe usage of new static\\(\\)\\.$#"
count: 1
path: typo3/sysext/workspaces/Classes/Domain/Record/WorkspaceRecord.php
-
message: "#^Class TYPO3Fluid\\\\Fluid\\\\Core\\\\Parser\\\\TemplateParser does not have a constructor and must be instantiated without any parameters\\.$#"
count: 1
path: typo3/sysext/fluid/Classes/Core/Rendering/RenderingContext.php
-
message: "#^Call to an undefined static method TYPO3Fluid\\\\Fluid\\\\Core\\\\Rendering\\\\RenderingContext\\:\\:getParserConfiguration\\(\\)\\.$#"
count: 1
path: typo3/sysext/fluid/Classes/Core/Rendering/RenderingContext.php
# ignored errors for level 1
-
message: "#^Variable \\$value in isset\\(\\) always exists and is not nullable\\.$#"
count: 1
path: typo3/sysext/backend/Classes/Utility/BackendUtility.php
-
message: "#^Variable \\$pidConf in isset\\(\\) always exists and is not nullable\\.$#"
count: 1
path: typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php
-
message: "#^Variable \\$column in isset\\(\\) always exists and is not nullable\\.$#"
count: 1
path: typo3/sysext/workspaces/Classes/Service/GridDataService.php
-
message: "#^Constructor of class TYPO3\\\\CMS\\\\Frontend\\\\Controller\\\\TypoScriptFrontendController has an unused parameter \\$_2\\.$#"
count: 1
path: typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php
-
message: "#^Constructor of class TYPO3\\\\CMS\\\\Frontend\\\\Plugin\\\\AbstractPlugin has an unused parameter \\$_\\.$#"
count: 1
path: typo3/sysext/frontend/Classes/Plugin/AbstractPlugin.php
-
message: "#^Constructor of class TYPO3\\\\CMS\\\\RteCKEditor\\\\Form\\\\Resolver\\\\RichTextNodeResolver has an unused parameter \\$nodeFactory\\.$#"
count: 1
path: typo3/sysext/rte_ckeditor/Classes/Form/Resolver/RichTextNodeResolver.php
# Ignored errors for level 2
-
message: "#^Method TYPO3\\\\CMS\\\\Core\\\\Resource\\\\Processing\\\\ImageCropScaleMaskTask\\:\\:fileNeedsProcessing\\(\\) should return bool but return statement is missing\\.$#"
count: 1
path: typo3/sysext/core/Classes/Resource/Processing/ImageCropScaleMaskTask.php
# Ignored errors for level 3
-
message: "#^Property TYPO3\\\\CMS\\\\Belog\\\\Domain\\\\Model\\\\LogEntry\\:\\:\\$tableName \\(string\\) does not accept default value of type int\\.$#"
count: 1
path: typo3/sysext/belog/Classes/Domain/Model/LogEntry.php
-
message: "#^Property TYPO3\\\\CMS\\\\Belog\\\\Domain\\\\Model\\\\LogEntry\\:\\:\\$newId \\(string\\) does not accept default value of type int\\.$#"
count: 1
path: typo3/sysext/belog/Classes/Domain/Model/LogEntry.php
# Ignored errors for level 4
-
message: "#^Unreachable statement \\- code above always terminates\\.$#"
count: 1
path: typo3/sysext/backend/Classes/Security/CategoryPermissionsAspect.php
-
message: "#^Unreachable statement \\- code above always terminates\\.$#"
count: 1
path: typo3/sysext/core/Classes/Utility/File/ExtendedFileUtility.php
-
message: "#^Unreachable statement \\- code above always terminates\\.$#"
count: 1
path: typo3/sysext/frontend/Classes/Aspect/FileMetadataOverlayAspect.php
-
message: "#^Unreachable statement \\- code above always terminates\\.$#"
count: 1
path: typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php
-
message: "#^Unreachable statement \\- code above always terminates\\.$#"
count: 1
path: typo3/sysext/indexed_search/Classes/Lexer.php
-
message: "#^Unreachable statement \\- code above always terminates\\.$#"
count: 1
path: typo3/sysext/scheduler/Classes/Task/FileStorageIndexingAdditionalFieldProvider.php
-
message: "#^Ternary operator condition is always false\\.$#"
count: 1
path: typo3/sysext/backend/Classes/Form/Element/SelectCheckBoxElement.php
-
message: "#^Ternary operator condition is always true\\.$#"
count: 2
path: typo3/sysext/backend/Classes/Form/Element/SelectSingleElement.php