forked from vimeo/psalm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
psalm.xml.dist
152 lines (136 loc) · 5.94 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
<?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"
totallyTyped="true"
strictBinaryOperands="false"
rememberPropertyAssignmentsAfterCall="true"
checkForThrowsDocblock="false"
throwExceptionOnError="0"
findUnusedCode="true"
ensureArrayStringOffsetsExist="true"
ensureArrayIntOffsetsExist="false"
resolveFromConfigFile="true"
xsi:schemaLocation="https://getpsalm.org/schema/config config.xsd"
>
<projectFiles>
<directory name="src"/>
<directory name="tests"/>
<directory name="examples"/>
<ignoreFiles>
<file name="src/Psalm/Internal/CallMap.php"/>
<file name="src/Psalm/Internal/Traverser/CustomTraverser.php"/>
<file name="tests/ErrorBaselineTest.php"/>
<file name="vendor/symfony/console/Command/Command.php"/>
<file name="src/spl_object_id.php"/>
<file name="src/Psalm/Internal/Stubs/*.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>
<stubs>
<file name="src/Psalm/Internal/Stubs/Amp.php"/>
</stubs>
<plugins>
<plugin filename="examples/plugins/FunctionCasingChecker.php"/>
<pluginClass class="Psalm\PhpUnitPlugin\Plugin"/>
</plugins>
<issueHandlers>
<PossiblyNullOperand errorLevel="suppress"/>
<DeprecatedMethod>
<errorLevel type="suppress">
<directory name="tests" />
</errorLevel>
</DeprecatedMethod>
<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>
<errorLevel type="info">
<directory name="src/Psalm/Type/Atomic"/>
</errorLevel>
</PossiblyUnusedParam>
<UnusedClass>
<errorLevel type="suppress">
<directory name="examples"/>
<directory name="src/Psalm/Internal/Fork" />
<file name="src/Psalm/Plugin/Shepherd.php" />
<file name="src/Psalm/Plugin/Hook/MethodReturnTypeProviderInterface.php"/>
</errorLevel>
</UnusedClass>
<UnusedProperty>
<errorLevel type="info">
<file name="src/Psalm/Internal/FileManipulation/FunctionDocblockManipulator.php"/>
</errorLevel>
</UnusedProperty>
<PossiblyUnusedProperty>
<errorLevel type="info">
<file name="src/Psalm/Internal/LanguageServer/LanguageClient.php"/>
<file name="src/Psalm/Storage/FunctionLikeStorage.php"/>
<file name="src/Psalm/Type/Atomic/TCallableArray.php"/>
<file name="src/Psalm/Type/Atomic/TNonEmptyArray.php"/>
<file name="src/Psalm/Storage/PropertyStorage.php"/>
</errorLevel>
</PossiblyUnusedProperty>
<MissingThrowsDocblock errorLevel="info"/>
<PossiblyUnusedMethod>
<errorLevel type="info">
<file name="src/Psalm/Internal/Provider/FileReferenceProvider.php" />
</errorLevel>
<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>
<PropertyNotSetInConstructor>
<errorLevel type="suppress">
<file name="src/Psalm/Config.php"/>
</errorLevel>
</PropertyNotSetInConstructor>
<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" />
<directory name="tests"/>
</errorLevel>
</PossiblyUndefinedStringArrayOffset>
</issueHandlers>
</psalm>