-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpsalm.xml
113 lines (113 loc) · 4.75 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
<?xml version="1.0"?>
<psalm
autoloader="../../../vendor/autoload.php"
findUnusedVariablesAndParams="true"
hideExternalErrors="true"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config ../../../dev-ops/analyze/vendor-bin/psalm/vendor/vimeo/psalm/config.xsd"
>
<projectFiles>
<directory name="src"/>
<directory name="test"/>
<ignoreFiles>
</ignoreFiles>
</projectFiles>
<issueHandlers>
<!-- NRLEJPostDirektAddressfactory does not have property in constructor, however it is referenced due to
\Symfony\Component\HttpKernel\Bundle\Bundle -->
<PropertyNotSetInConstructor>
<errorLevel type="info">
<referencedProperty name="Symfony\Component\DependencyInjection\ContainerAwareTrait::$container"/>
<!-- PHPUnit test case property will not be explicitly set by our test classes (no constructor overwrite) -->
<referencedProperty name="PHPUnit\Framework\TestCase::$backupGlobals"/>
<referencedProperty name="PostDirekt\Addressfactory\ScheduledTask\AutoProcess::$taskId"/>
<!-- Property set in setup method -->
<directory name="test"/>
<!-- Controllers have di-container through ContainerAwareTrait in AbstractController -->
<directory name="src/Controller"/>
<directory name="src/Resources/OrderAddress"/>
<file name="src/ScheduledTask/AutoProcess.php"/>
</errorLevel>
</PropertyNotSetInConstructor>
<MoreSpecificImplementedParamType>
<errorLevel type="info">
<!-- Entity definitions specify types by design -->
<directory name="src/Resources/OrderAddress"/>
</errorLevel>
</MoreSpecificImplementedParamType>
<InternalMethod>
<errorLevel type="info">
<!-- For some reason psalm thinks some PHPUnit mock manipulation methods are internal -->
<directory name="test"/>
</errorLevel>
</InternalMethod>
<PossiblyUndefinedMethod>
<errorLevel type="info">
<!-- Mock object methods are not properly recognized due to compound type -->
<directory name="test"/>
</errorLevel>
</PossiblyUndefinedMethod>
<InvalidArgument>
<errorLevel type="info">
<directory name="test"/>
</errorLevel>
</InvalidArgument>
<PossiblyInvalidArgument>
<errorLevel type="info">
<!-- Mock objects do not satisfy type requirements of constructors due to compound type -->
<directory name="test"/>
</errorLevel>
</PossiblyInvalidArgument>
<MissingConstructor>
<errorLevel type="info">
<!-- Contains entity definitions for SW DAL, therefore no constructors-->
<directory name="src/Resources/OrderAddress"/>
</errorLevel>
</MissingConstructor>
<!-- test/TestBootstrap dynamically includes things, which psalm can not resolve -->
<UnresolvableInclude errorLevel="info"/>
<ArgumentTypeCoercion>
<errorLevel type="info">
<directory name="test"/>
</errorLevel>
</ArgumentTypeCoercion>
<PropertyTypeCoercion>
<errorLevel type="info">
<directory name="test"/>
</errorLevel>
</PropertyTypeCoercion>
<InternalMethod>
<errorLevel type="info">
<file name="src/ScheduledTask/AutoProcessHandler.php"/>
<directory name="test"/>
</errorLevel>
</InternalMethod>
<InternalClass>
<errorLevel type="suppress">
<file name="test/Fixture/Order.php"/>
</errorLevel>
</InternalClass>
<PossiblyNullReference>
<errorLevel type="info">
<directory name="test"/>
</errorLevel>
</PossiblyNullReference>
<PossiblyInvalidCast>
<errorLevel type="info">
<file name="src/Service/ModuleConfig.php"/>
</errorLevel>
</PossiblyInvalidCast>
<UnusedVariable>
<errorLevel type="info">
<file name="src/NRLEJPostDirektAddressfactory.php"/>
</errorLevel>
</UnusedVariable>
<MissingFile>
<errorLevel type="info">
<file name="src/NRLEJPostDirektAddressfactory.php"/>
<file name="test/TestBootstrap.php"/>
</errorLevel>
</MissingFile>
</issueHandlers>
</psalm>