forked from shopware/SwagPayPal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
psalm.xml
121 lines (107 loc) · 5.05 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
<?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>
<MoreSpecificImplementedParamType>
<errorLevel type="info">
<file name="src/Webhook/Handler/*.php"/>
<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>
<DeprecatedClass>
<errorLevel type="info">
<!-- <deprecated> tag:v3.0.0 - remove with 3.0.0 -->
<file name="src/Checkout/ExpressCheckout/Route/ExpressApprovePaymentRoute.php"/>
<file name="tests/Checkout/ExpressCheckout/ExpressCheckoutControllerTest.php"/>
</errorLevel>
</DeprecatedClass>
<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:v3.0.0 - remove with 3.0.0 -->
<referencedMethod name="Swag\PayPal\Checkout\ExpressCheckout\ExpressCheckoutController::createNewCart"/>
<referencedMethod name="Swag\PayPal\Checkout\ExpressCheckout\ExpressCheckoutController::createPayment"/>
<referencedMethod name="Swag\PayPal\Checkout\ExpressCheckout\ExpressCheckoutController::onApprove"/>
</errorLevel>
</DeprecatedMethod>
<PossiblyInvalidArgument>
<errorLevel type="info">
<file name="tests/Pos/Sync/Product/*Test.php"/>
<file name="tests/Pos/Sync/Inventory/StockSubscriberTest.php"/>
</errorLevel>
</PossiblyInvalidArgument>
<PossiblyUndefinedMethod>
<errorLevel type="info">
<file name="tests/Pos/Sync/Product/*Test.php"/>
<file name="tests/Pos/Sync/Inventory/StockSubscriberTest.php"/>
</errorLevel>
</PossiblyUndefinedMethod>
<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>
<UnsafeInstantiation>
<errorLevel type="info">
<file name="tests/Pos/Mock/Repositories/AbstractRepoMock.php"/>
</errorLevel>
</UnsafeInstantiation>
<!-- level 3 issues - slightly lazy code writing, but provably low false-negatives -->
<PropertyNotSetInConstructor errorLevel="info"/>
<MissingConstructor errorLevel="info"/>
</issueHandlers>
</psalm>