forked from shopware/SwagPayPal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpsalm.xml
149 lines (132 loc) · 6.53 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
<?xml version="1.0"?>
<psalm
cacheDirectory="var/cache/psalm"
autoloader="bin/static-analyze-autoloader.php"
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="src"/>
<directory name="tests"/>
<ignoreFiles>
<directory name="../../../platform"/> <!-- would otherwise inspect Shopware -->
<directory name="../../../vendor"/> <!-- would otherwise inspect vendor -->
</ignoreFiles>
</projectFiles>
<issueHandlers>
<LessSpecificImplementedReturnType>
<errorLevel type="info">
<!-- <deprecated> tag:v2.0.0 - Remove once the Token class is final -->
<file name="src/PayPal/Api/Token.php"/>
</errorLevel>
</LessSpecificImplementedReturnType>
<DeprecatedClass>
<errorLevel type="info">
<!-- <deprecated> tag:v2.0.0 - Remove once the Token class is final -->
<referencedClass name="Swag\PayPal\PayPal\Api\Token"/>
<!-- <deprecated> tag:v2.0.0 - Remove once the BaseURL class is final -->
<referencedClass name="Swag\PayPal\PayPal\BaseURL"/>
</errorLevel>
</DeprecatedClass>
<MoreSpecificImplementedParamType>
<errorLevel type="info">
<file name="src/Pos/Sync/Product/Util/ProductGroupingCollection.php"/>
<file name="src/Pos/DataAbstractionLayer/Entity/*Collection.php"/>
<file name="src/Pos/MessageQueue/Handler/Sync/*Handler.php"/>
<file name="src/Pos/Webhook/Handler/*Handler.php"/>
</errorLevel>
</MoreSpecificImplementedParamType>
<UnusedMethodCall>
<errorLevel type="info">
<file name="src/Setting/SwagPayPalSettingStructValidator.php"/>
</errorLevel>
</UnusedMethodCall>
<InvalidReturnType>
<errorLevel type="info">
<directory name="tests/Mock"/>
<directory name="tests/Pos/Mock"/>
</errorLevel>
</InvalidReturnType>
<InternalMethod>
<errorLevel type="info">
<file name="src/Pos/Command/*Command.php"/>
<file name="src/Pos/Schedule/*Handler.php"/>
<directory name="tests"/>
</errorLevel>
</InternalMethod>
<DeprecatedInterface>
<errorLevel type="info">
<referencedClass name="Shopware\Core\Framework\DataAbstractionLayer\EntityExtensionInterface"/>
</errorLevel>
</DeprecatedInterface>
<DeprecatedTrait>
<errorLevel type="info">
<directory name="tests"/>
</errorLevel>
</DeprecatedTrait>
<DeprecatedMethod>
<errorLevel type="info">
<!-- ToDo PPI-65 - Change for 6.4 to PurchasePrice collection -->
<referencedMethod name="Shopware\Core\Content\Product\ProductEntity::getPurchasePrice"/>
<referencedMethod name="Shopware\Core\Content\Product\ProductEntity::setPurchasePrice"/>
<referencedMethod name="Shopware\Core\Framework\Test\TestCaseBase\AssertArraySubsetBehaviour::silentAssertArraySubset"/>
<!-- <deprecated> tag:v2.0.0 - Remove with 2.0.0 -->
<referencedMethod name="Swag\PayPal\Checkout\SPBCheckout\SPBMarksData::isUseAlternativePaymentMethods"/>
<!-- <deprecated> tag:v2.0.0 - Remove with 2.0.0 -->
<referencedMethod name="Swag\PayPal\Checkout\ExpressCheckout\ExpressCheckoutButtonData::getAddLineItemUrl"/>
<!-- <deprecated> tag:v2.0.0 - Remove with 2.0.0 -->
<referencedMethod name="Swag\PayPal\Checkout\SPBCheckout\SPBCheckoutButtonData::getErrorParameter"/>
</errorLevel>
</DeprecatedMethod>
<PossiblyInvalidArgument>
<errorLevel type="info">
<file name="tests/Pos/Sync/Product/*Test.php"/>
</errorLevel>
</PossiblyInvalidArgument>
<PossiblyUndefinedMethod>
<errorLevel type="info">
<file name="tests/Pos/Sync/Product/*Test.php"/>
</errorLevel>
</PossiblyUndefinedMethod>
<DeprecatedConstant>
<errorLevel type="info">
<!-- <deprecated> tag:v2.0.0 - Remove with 2.0.0 -->
<file name="src/Checkout/SPBCheckout/SPBCheckoutButtonData.php"/>
<!-- <deprecated> tag:v2.0.0 - Remove with 2.0.0 -->
<file name="tests/Checkout/SPBCheckout/SPBCheckoutSubscriberTest.php"/>
<!-- <deprecated> tag:v2.0.0 - Remove with 2.0.0 -->
<file name="src/PayPal/Resource/TokenResource.php"/>
</errorLevel>
</DeprecatedConstant>
<DeprecatedProperty>
<errorLevel type="info">
<!-- <deprecated> tag:v2.0.0 - Remove with 2.0.0 -->
<referencedProperty name="Swag\PayPal\Checkout\Plus\PlusPaymentFinalizeController::$logger"/>
<!-- <deprecated> tag:v2.0.0 - Remove with 2.0.0 -->
<referencedProperty name="Swag\PayPal\Checkout\ExpressCheckout\ExpressCheckoutController::$logger"/>
</errorLevel>
</DeprecatedProperty>
<UnresolvableInclude>
<errorLevel type="info">
<file name="tests/TestBootstrap.php"/>
</errorLevel>
</UnresolvableInclude>
<PossiblyNullReference>
<errorLevel type="info">
<!-- Psalm does not recognize the markTestSkipped method call as terminating -->
<file name="tests/Checkout/ExpressCheckout/ExpressCheckoutSubscriberTest.php"/>
</errorLevel>
</PossiblyNullReference>
<RedundantCondition>
<errorLevel type="info">
<!-- Needs to be ignored, because \Shopware\Core\Checkout\Order\OrderEntity::getOrderNumber returns `null` with Shopware 6.3.2.0. Could be removed once this is the minimum version -->
<file name="src/Payment/PayPalPaymentHandler.php"/>
</errorLevel>
</RedundantCondition>
<!-- level 3 issues - slightly lazy code writing, but provably low false-negatives -->
<PropertyNotSetInConstructor errorLevel="info"/>
<MissingConstructor errorLevel="info"/>
</issueHandlers>
</psalm>