forked from shopware/shopware
-
Notifications
You must be signed in to change notification settings - Fork 0
/
psalm.xml
190 lines (166 loc) · 8.26 KB
/
psalm.xml
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
<?xml version="1.0"?>
<psalm
cacheDirectory="var/cache/psalm"
ensureArrayStringOffsetsExist="true"
findUnusedVariablesAndParams="true"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
>
<projectFiles>
<directory name="platform/src"/>
<directory name="src"/>
<ignoreFiles>
<directory name="vendor"/>
<directory name="platform/src/Recovery" />
</ignoreFiles>
</projectFiles>
<issueHandlers>
<!-- Shopware related issues which are ignored -->
<UnusedMethodCall>
<errorLevel type="info">
<referencedMethod name="Symfony\Component\Config\Definition\Builder\NodeBuilder::end"/>
</errorLevel>
</UnusedMethodCall>
<UnusedVariable>
<errorLevel type="info">
<file name="platform/src/Docs/Resources/current/2-internals/1-core/50-checkout-process/_examples/10-cart-example.php"/>
</errorLevel>
</UnusedVariable>
<UnusedFunctionCall>
<errorLevel type="info">
<referencedFunction name="iterator_to_array"/>
</errorLevel>
</UnusedFunctionCall>
<UndefinedDocblockClass>
<errorLevel type="suppress">
<referencedClass name="Symfony\Component\DependencyInjection\ContainerAwareTrait"/> <!-- Issue with loading traits in Docblocks -->
</errorLevel>
</UndefinedDocblockClass>
<InvalidCast>
<errorLevel type="info">
<file name="platform/src/Core/Profiling/Twig/DoctrineExtension.php"/>
</errorLevel>
</InvalidCast>
<UndefinedConstant>
<errorLevel type="info">
<file name="platform/src/Core/Framework/Test/Plugin/Util/PluginFinderTest.php"/>
<file name="platform/src/Core/Framework/Test/TestCaseBase/KernelLifecycleManagerTest.php"/>
<file name="platform/src/Core/Framework/Test/Plugin/KernelPluginLoader/DbalKernelPluginLoaderTest.php"/>
<file name="platform/src/Core/Framework/Test/Plugin/KernelPluginLoader/StaticKernelPluginLoaderTest.php"/>
<file name="platform/src/Core/Framework/Test/Plugin/KernelPluginIntegrationTest.php"/>
<file name="platform/src/Core/Migration/Test/BasicDataUntouchedTest.php"/>
<file name="platform/src/Docs/Resources/current/2-internals/1-core/50-checkout-process/_examples/10-cart-example.php"/>
</errorLevel>
</UndefinedConstant>
<InvalidScope>
<errorLevel type="info">
<directory name="platform/src/Core/Flag"/>
<directory name="platform/src/Core/Framework/Test/FeatureFlag"/>
</errorLevel>
</InvalidScope>
<MissingFile>
<errorLevel type="info">
<file name="platform/src/Core/Framework/Test/FeatureFlag/FeatureTest.php"/>
</errorLevel>
</MissingFile>
<LessSpecificReturnType errorLevel="info"/>
<!-- level 3 issues - slightly lazy code writing, but provably low false-negatives -->
<DeprecatedMethod errorLevel="info"/>
<DeprecatedProperty errorLevel="info"/>
<DeprecatedClass errorLevel="info"/>
<DeprecatedConstant errorLevel="info"/>
<DeprecatedFunction errorLevel="info"/>
<DeprecatedInterface errorLevel="info"/>
<DeprecatedTrait errorLevel="info"/>
<InternalMethod errorLevel="info"/>
<InternalProperty errorLevel="info"/>
<InternalClass errorLevel="info"/>
<MissingClosureReturnType errorLevel="info"/>
<MissingReturnType errorLevel="info"/>
<MissingPropertyType errorLevel="info"/>
<InvalidDocblock errorLevel="info"/>
<MisplacedRequiredParam errorLevel="info"/>
<PropertyNotSetInConstructor errorLevel="info"/>
<MissingConstructor errorLevel="info"/>
<MissingClosureParamType errorLevel="info"/>
<MissingParamType errorLevel="info"/>
<RedundantCondition errorLevel="info"/>
<DocblockTypeContradiction errorLevel="info"/>
<RedundantConditionGivenDocblockType errorLevel="info"/>
<UnresolvableInclude errorLevel="info"/>
<RawObjectIteration errorLevel="info"/>
<InvalidStringClass errorLevel="info"/>
<!-- level 4 issues - points to possible deficiencies in logic, higher false-positives -->
<MoreSpecificReturnType errorLevel="info"/>
<LessSpecificReturnStatement errorLevel="info"/>
<TypeCoercion errorLevel="info"/>
<PossiblyFalseArgument errorLevel="info"/>
<PossiblyFalseIterator errorLevel="info"/>
<PossiblyFalseOperand errorLevel="info"/>
<PossiblyFalsePropertyAssignmentValue errorLevel="info"/>
<PossiblyFalseReference errorLevel="info"/>
<PossiblyInvalidArgument errorLevel="info"/>
<PossiblyInvalidArrayAccess errorLevel="info"/>
<PossiblyInvalidArrayAssignment errorLevel="info"/>
<PossiblyInvalidArrayOffset errorLevel="info"/>
<PossiblyInvalidCast errorLevel="info"/>
<PossiblyInvalidFunctionCall errorLevel="info"/>
<PossiblyInvalidIterator errorLevel="info"/>
<PossiblyInvalidMethodCall errorLevel="info"/>
<PossiblyInvalidOperand errorLevel="info"/>
<PossiblyInvalidPropertyAssignment errorLevel="info"/>
<PossiblyInvalidPropertyAssignmentValue errorLevel="info"/>
<PossiblyInvalidPropertyFetch errorLevel="info"/>
<PossiblyNullArgument errorLevel="info"/>
<PossiblyNullArrayAccess errorLevel="info"/>
<PossiblyNullArrayAssignment errorLevel="info"/>
<PossiblyNullArrayOffset errorLevel="info"/>
<PossiblyNullFunctionCall errorLevel="info"/>
<PossiblyNullIterator errorLevel="info"/>
<PossiblyNullOperand errorLevel="info"/>
<PossiblyNullPropertyAssignment errorLevel="info"/>
<PossiblyNullPropertyAssignmentValue errorLevel="info"/>
<PossiblyNullPropertyFetch errorLevel="info"/>
<PossiblyNullReference errorLevel="info"/>
<PossiblyUndefinedGlobalVariable errorLevel="info"/>
<PossiblyUndefinedVariable errorLevel="info"/>
<PossiblyUndefinedArrayOffset errorLevel="info"/>
<PossiblyUndefinedMethod errorLevel="info"/>
<!-- level 5 issues - should be avoided at mosts costs... -->
<ForbiddenCode errorLevel="info"/>
<ImplicitToStringCast errorLevel="info"/>
<InvalidScalarArgument errorLevel="info"/>
<InvalidToString errorLevel="info"/>
<InvalidOperand errorLevel="info"/>
<NoInterfaceProperties errorLevel="info"/>
<TooManyArguments errorLevel="info"/>
<TypeDoesNotContainType errorLevel="info"/>
<TypeDoesNotContainNull errorLevel="info"/>
<MissingDocblockType errorLevel="info"/>
<ImplementedReturnTypeMismatch errorLevel="info"/>
<ImplementedParamTypeMismatch errorLevel="info"/>
<!-- level 6 issues - really bad things -->
<InvalidNullableReturnType errorLevel="info"/>
<NullableReturnStatement errorLevel="info"/>
<InvalidFalsableReturnType errorLevel="info"/>
<FalsableReturnStatement errorLevel="info"/>
<MoreSpecificImplementedParamType errorLevel="info"/>
<LessSpecificImplementedReturnType errorLevel="info"/>
<InvalidReturnStatement errorLevel="info"/>
<InvalidReturnType errorLevel="info"/>
<UndefinedThisPropertyAssignment errorLevel="info"/>
<UndefinedInterfaceMethod errorLevel="info"/>
<!-- level 7 issues - even worse -->
<UndefinedThisPropertyAssignment errorLevel="info"/>
<UndefinedPropertyAssignment errorLevel="info"/>
<UndefinedThisPropertyFetch errorLevel="info"/>
<UndefinedPropertyFetch errorLevel="info"/>
<InvalidReturnStatement errorLevel="info"/>
<InvalidReturnType errorLevel="info"/>
<InvalidArgument errorLevel="info"/>
<InvalidPropertyAssignmentValue errorLevel="info"/>
<InvalidArrayOffset errorLevel="info"/>
<InvalidArrayAssignment errorLevel="info"/>
</issueHandlers>
</psalm>