forked from shopware/shopware
-
Notifications
You must be signed in to change notification settings - Fork 0
/
psalm.xml
183 lines (155 loc) · 7.5 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
<?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"/>
<directory name="platform/src/Docs/Resources"/>
</ignoreFiles>
</projectFiles>
<issueHandlers>
<!-- Shopware related issues which are ignored -->
<UnusedMethodCall>
<errorLevel type="info">
<referencedMethod name="Symfony\Component\Config\Definition\Builder\NodeBuilder::end"/>
</errorLevel>
</UnusedMethodCall>
<UnusedFunctionCall>
<errorLevel type="info">
<referencedFunction name="iterator_to_array"/>
</errorLevel>
</UnusedFunctionCall>
<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"/>
</errorLevel>
</UndefinedConstant>
<UnusedParam>
<errorLevel type="info">
<file name="platform/src/Core/Framework/DataAbstractionLayer/Doctrine/RetryableQuery.php"/>
</errorLevel>
</UnusedParam>
<InvalidCatch>
<errorLevel type="info">
<file name="platform/src/Core/Framework/DataAbstractionLayer/Doctrine/RetryableQuery.php"/>
</errorLevel>
</InvalidCatch>
<InaccessibleMethod>
<errorLevel type="info">
<file name="platform/src/Core/Framework/Test/Update/UpdateControllerTest.php"/>
</errorLevel>
</InaccessibleMethod>
<UnusedVariable>
<errorLevel type="info">
<file name="platform/src/Storefront/Test/Theme/ThemeTest.php"/>
</errorLevel>
</UnusedVariable>
<LessSpecificImplementedReturnType errorLevel="info"/>
<UnusedMethodCall>
<errorLevel type="info">
<referencedMethod name="Symfony\Component\Config\Definition\Builder\NodeDefinition::end"/>
<referencedMethod name="Symfony\Component\Config\Definition\Builder\NodeBuilder::end"/>
</errorLevel>
</UnusedMethodCall>
<ParamNameMismatch errorLevel="info"/>
<UnsafeInstantiation errorLevel="info"/>
<!-- Issue in Psalm https://github.com/vimeo/psalm/issues/2706 -->
<InaccessibleProperty>
<errorLevel type="info">
<file name="platform/src/Core/Framework/Api/Controller/CacheController.php"/>
</errorLevel>
</InaccessibleProperty>
<UnnecessaryVarAnnotation>
<errorLevel type="info">
<!-- Needed for a smooth transition of the PHPStan update. Could be removed once PHPStan is updated to 0.12.49 -->
<file name="platform/src/Elasticsearch/Framework/DataAbstractionLayer/ElasticsearchEntitySearcher.php"/>
</errorLevel>
</UnnecessaryVarAnnotation>
<!-- 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"/>
<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"/>
<PossiblyFalseReference errorLevel="info"/>
<PossiblyInvalidArrayAccess errorLevel="info"/>
<PossiblyInvalidArrayAssignment errorLevel="info"/>
<PossiblyInvalidCast errorLevel="info"/>
<PossiblyInvalidFunctionCall errorLevel="info"/>
<PossiblyInvalidIterator errorLevel="info"/>
<PossiblyInvalidMethodCall errorLevel="info"/>
<PossiblyNullArrayAccess errorLevel="info"/>
<PossiblyNullArrayAssignment errorLevel="info"/>
<PossiblyNullArrayOffset errorLevel="info"/>
<PossiblyNullIterator errorLevel="info"/>
<PossiblyNullPropertyFetch errorLevel="info"/>
<PossiblyNullReference errorLevel="info"/>
<PossiblyUndefinedVariable errorLevel="info"/>
<PossiblyUndefinedArrayOffset errorLevel="info"/>
<PossiblyUndefinedMethod errorLevel="info"/>
<!-- level 5 issues - should be avoided at mosts costs... -->
<ImplicitToStringCast errorLevel="info"/>
<InvalidScalarArgument errorLevel="info"/>
<InvalidOperand errorLevel="info"/>
<TooManyArguments errorLevel="info"/>
<TypeDoesNotContainType errorLevel="info"/>
<ImplementedReturnTypeMismatch errorLevel="info"/>
<!-- level 6 issues - really bad things -->
<InvalidNullableReturnType errorLevel="info"/>
<NullableReturnStatement errorLevel="info"/>
<InvalidFalsableReturnType errorLevel="info"/>
<FalsableReturnStatement errorLevel="info"/>
<MoreSpecificImplementedParamType errorLevel="info"/>
<InvalidReturnStatement errorLevel="info"/>
<InvalidReturnType errorLevel="info"/>
<UndefinedInterfaceMethod errorLevel="info"/>
<!-- level 7 issues - even worse -->
<UndefinedPropertyAssignment errorLevel="info"/>
<UndefinedThisPropertyFetch errorLevel="info"/>
<UndefinedPropertyFetch errorLevel="info"/>
<InvalidArgument errorLevel="info"/>
<InvalidPropertyAssignmentValue errorLevel="info"/>
<InvalidArrayOffset errorLevel="info"/>
</issueHandlers>
</psalm>