forked from vimeo/psalm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
psalm.xml.dist
162 lines (145 loc) · 6.1 KB
/
psalm.xml.dist
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
<?xml version="1.0"?>
<psalm
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
name="Psalm for Psalm"
useDocblockTypes="true"
errorLevel="1"
strictBinaryOperands="false"
rememberPropertyAssignmentsAfterCall="true"
checkForThrowsDocblock="false"
throwExceptionOnError="0"
findUnusedCode="true"
ensureArrayStringOffsetsExist="true"
ensureArrayIntOffsetsExist="true"
resolveFromConfigFile="true"
xsi:schemaLocation="https://getpsalm.org/schema/config config.xsd"
limitMethodComplexity="true"
errorBaseline="psalm-baseline.xml"
findUnusedPsalmSuppress="true"
>
<stubs>
<file name="stubs/phpparser.phpstub"/>
</stubs>
<projectFiles>
<directory name="src"/>
<directory name="tests"/>
<directory name="examples"/>
<file name="psalm"/>
<file name="psalm-language-server"/>
<file name="psalm-plugin"/>
<file name="psalm-refactor"/>
<file name="psalter"/>
<ignoreFiles>
<file name="src/Psalm/Internal/PhpTraverser/CustomTraverser.php"/>
<file name="tests/ErrorBaselineTest.php"/>
<file name="vendor/symfony/console/Command/Command.php"/>
<directory name="tests/fixtures"/>
<file name="vendor/felixfbecker/advanced-json-rpc/lib/Dispatcher.php" />
<directory name="vendor/netresearch/jsonmapper" />
<directory name="vendor/phpunit" />
</ignoreFiles>
</projectFiles>
<ignoreExceptions>
<class name="UnexpectedValueException"/>
<class name="InvalidArgumentException"/>
<class name="LogicException"/>
</ignoreExceptions>
<plugins>
<plugin filename="examples/plugins/FunctionCasingChecker.php"/>
<pluginClass class="Psalm\PhpUnitPlugin\Plugin"/>
<plugin filename="examples/plugins/InternalChecker.php"/>
</plugins>
<issueHandlers>
<PossiblyNullOperand errorLevel="suppress"/>
<DeprecatedMethod>
<errorLevel type="suppress">
<directory name="tests" />
</errorLevel>
</DeprecatedMethod>
<UnusedParam>
<errorLevel type="suppress">
<directory name="examples"/>
</errorLevel>
</UnusedParam>
<PossiblyUnusedParam>
<errorLevel type="suppress">
<directory name="examples"/>
</errorLevel>
</PossiblyUnusedParam>
<UnusedClass>
<errorLevel type="suppress">
<directory name="examples"/>
<directory name="src/Psalm/Internal/Fork" />
<directory name="src/Psalm/Node" />
<file name="src/Psalm/Plugin/Shepherd.php" />
</errorLevel>
</UnusedClass>
<MissingConstructor>
<errorLevel type="suppress">
<directory name="tests"/>
</errorLevel>
</MissingConstructor>
<PossiblyUndefinedIntArrayOffset>
<errorLevel type="suppress">
<directory name="src/Psalm/Internal/ExecutionEnvironment" />
<directory name="tests"/>
</errorLevel>
</PossiblyUndefinedIntArrayOffset>
<MissingThrowsDocblock errorLevel="info"/>
<PossiblyUnusedProperty>
<errorLevel type="suppress">
<file name="src/Psalm/Report.php"/>
</errorLevel>
</PossiblyUnusedProperty>
<PossiblyUnusedMethod>
<errorLevel type="suppress">
<directory name="src/Psalm/Plugin"/>
<directory name="src/Psalm/SourceControl/Git/"/>
<file name="src/Psalm/Internal/LanguageServer/Client/TextDocument.php"/>
<file name="src/Psalm/Internal/LanguageServer/Server/TextDocument.php"/>
<referencedMethod name="Psalm\Codebase::getParentInterfaces"/>
<referencedMethod name="Psalm\Codebase::getMethodParams"/>
<referencedMethod name="Psalm\Codebase::getMethodReturnType"/>
<referencedMethod name="Psalm\Codebase::getMethodReturnTypeLocation"/>
<referencedMethod name="Psalm\Codebase::getDeclaringMethodId"/>
<referencedMethod name="Psalm\Codebase::getAppearingMethodId"/>
<referencedMethod name="Psalm\Codebase::getOverriddenMethodIds"/>
<referencedMethod name="Psalm\Codebase::getCasedMethodId"/>
<referencedMethod name="Psalm\Codebase::createClassLikeStorage"/>
<referencedMethod name="Psalm\Codebase::isVariadic"/>
<referencedMethod name="Psalm\Codebase::getMethodReturnsByRef"/>
</errorLevel>
</PossiblyUnusedMethod>
<InternalMethod>
<errorLevel type="suppress">
<directory name="tests"/>
</errorLevel>
</InternalMethod>
<PossiblyUndefinedStringArrayOffset>
<errorLevel type="suppress">
<directory name="src/Psalm/Internal/Provider/ReturnTypeProvider" />
<file name="src/Psalm/Internal/Type/AssertionReconciler.php" />
<file name="src/Psalm/Internal/Type/NegatedAssertionReconciler.php" />
<file name="src/Psalm/Internal/Type/SimpleAssertionReconciler.php" />
<file name="src/Psalm/Internal/Type/SimpleNegatedAssertionReconciler.php" />
<directory name="tests"/>
</errorLevel>
</PossiblyUndefinedStringArrayOffset>
<MixedPropertyTypeCoercion>
<errorLevel type="suppress">
<directory name="vendor/nikic/php-parser" />
</errorLevel>
</MixedPropertyTypeCoercion>
<PropertyTypeCoercion>
<errorLevel type="suppress">
<directory name="vendor/nikic/php-parser" />
</errorLevel>
</PropertyTypeCoercion>
<MixedAssignment>
<errorLevel type="suppress">
<directory name="vendor/nikic/php-parser" />
</errorLevel>
</MixedAssignment>
</issueHandlers>
</psalm>