This repository has been archived by the owner on Aug 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
psalm.xml
71 lines (60 loc) · 2.61 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
<?xml version="1.0"?>
<psalm
totallyTyped="false"
resolveFromConfigFile="true"
autoloader="../../../vendor/autoload.php"
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" />
<ignoreFiles>
<directory name="vendor" />
<directory name="../../../platform"/> <!-- would otherwise inspect Shopware -->
<directory name="../../../vendor/shopware/platform"/> <!-- would otherwise inspect Shopware -->
</ignoreFiles>
</projectFiles>
<issueHandlers>
<LessSpecificReturnType errorLevel="info" />
<InternalMethod>
<errorLevel type="info">
<directory name="tests"/>
</errorLevel>
<errorLevel type="suppress">
<referencedMethod name="Shopware\Core\Framework\Context::createDefaultContext" />
</errorLevel>
</InternalMethod>
<!-- Necessary for the Symfony EventDispatcher BC break -->
<TooManyArguments>
<errorLevel type="suppress">
<referencedFunction name="Symfony\Component\EventDispatcher\EventDispatcherInterface::dispatch" />
<referencedFunction name="Symfony\Contracts\EventDispatcher\EventDispatcherInterface::dispatch" />
</errorLevel>
</TooManyArguments>
<DeprecatedTrait>
<errorLevel type="info">
<directory name="tests"/>
</errorLevel>
</DeprecatedTrait>
<DeprecatedInterface>
<errorLevel type="info">
<referencedClass name="Shopware\Core\Framework\DataAbstractionLayer\EntityExtensionInterface"/>
</errorLevel>
</DeprecatedInterface>
<DeprecatedMethod>
<errorLevel type="info">
<directory name="tests"/>
</errorLevel>
</DeprecatedMethod>
<!-- Happens a lot for nullable props in DAL entities for associations -->
<PossiblyNullReference errorLevel="info"/>
<PossiblyNullIterator errorLevel="info"/>
<!-- level 3 issues - slightly lazy code writing, but provably low false-negatives -->
<PropertyNotSetInConstructor errorLevel="info"/>
<MissingConstructor errorLevel="info"/>
<UnresolvableInclude errorLevel="info"/>
<!-- level 4 issues - points to possible deficiencies in logic, higher false-positives -->
<TypeCoercion errorLevel="info"/>
</issueHandlers>
</psalm>