Repository navigation
Expand file tree
/
Copy pathpsalm.xml.dist
More file actions
150 lines (137 loc) · 6.01 KB
/
Copy pathpsalm.xml.dist
File metadata and controls
150 lines (137 loc) · 6.01 KB
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
<?xml version="1.0"?>
<psalm
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
name="Psalm for Psalm"
errorLevel="1"
throwExceptionOnError="0"
findUnusedCode="true"
ensureArrayStringOffsetsExist="true"
ensureArrayIntOffsetsExist="true"
xsi:schemaLocation="https://getpsalm.org/schema/config config.xsd"
limitMethodComplexity="true"
errorBaseline="psalm-baseline.xml"
allFunctionsGlobal="true"
ensureOverrideAttribute="true"
suggestPurityAnnotations="true"
allConstantsGlobal="true"
runTaintAnalysis="true"
findUnusedPsalmSuppress="true"
findUnusedBaselineEntry="true"
findUnusedIssueHandlerSuppression="true"
>
<stubs>
<file name="stubs/phpparser.phpstub"/>
</stubs>
<enableExtensions>
<extension name="zstd"/>
</enableExtensions>
<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="psalm-review"/>
<file name="psalter"/>
<ignoreFiles>
<file name="src/Psalm/Internal/PhpTraverser/CustomTraverser.php"/>
<file name="tests/ErrorBaselineTest.php"/>
<file name="tests/Internal/CallMapTest.php"/>
<file name="vendor/symfony/console/Command/Command.php"/>
<directory name="tests/fixtures"/>
<file name="vendor/danog/advanced-json-rpc/lib/Dispatcher.php" />
<directory name="vendor/netresearch/jsonmapper" />
<directory name="vendor/phpunit" />
<directory name="vendor/mockery/mockery"/>
<directory name="vendor/nikic/php-parser"/>
</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"/>
<pluginClass class="Psalm\MockeryPlugin\Plugin"/>
</plugins>
<issueHandlers>
<Trace errorLevel="error"/>
<PossiblyNullOperand errorLevel="suppress"/>
<MissingAbstractPureAnnotation errorLevel="suppress"/>
<DeprecatedMethod>
<errorLevel type="suppress">
<directory name="tests" />
</errorLevel>
</DeprecatedMethod>
<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"/>
<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>
<PropertyNotSetInConstructor>
<errorLevel type="suppress">
<referencedProperty name="PhpParser\Node\Const_::$namespacedName" />
<referencedProperty name="PhpParser\Node\Stmt\ClassLike::$namespacedName" />
<referencedProperty name="PhpParser\Node\Stmt\Function_::$namespacedName" />
</errorLevel>
</PropertyNotSetInConstructor>
</issueHandlers>
<forbiddenFunctions>
<function name="die" />
</forbiddenFunctions>
</psalm>