-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
psalm.xml.dist
119 lines (114 loc) · 4.99 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
<?xml version="1.0"?>
<psalm
checkForThrowsDocblock="true"
checkForThrowsInGlobalScope="true"
disableSuppressAll="true"
ensureArrayStringOffsetsExist="true"
errorLevel="1"
findUnusedBaselineEntry="true"
findUnusedCode="true"
findUnusedPsalmSuppress="true"
findUnusedVariablesAndParams="true"
memoizeMethodCallResults="true"
reportMixedIssues="true"
sealAllMethods="true"
sealAllProperties="true"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config tools/psalm/vendor/vimeo/psalm/config.xsd"
>
<projectFiles>
<directory name="src"/>
<directory name="tests"/>
<ignoreFiles>
<directory name="tests/Internal/NativeAdapter/Fixtures"/>
<directory name="vendor"/>
</ignoreFiles>
<ignoreFiles allowMissingFiles="true">
<directory name="var"/>
</ignoreFiles>
</projectFiles>
<plugins>
<pluginClass class="Psalm\PhpUnitPlugin\Plugin"/>
<pluginClass class="Typhoon\CheckVisibilityPsalmPlugin\CheckVisibilityPlugin"/>
</plugins>
<ignoreExceptions>
<classAndDescendants name="ReflectionException"/>
<classAndDescendants name="LogicException"/>
<classAndDescendants name="RuntimeException"/>
<classAndDescendants name="Psr\SimpleCache\InvalidArgumentException"/>
</ignoreExceptions>
<issueHandlers>
<PluginIssue name="UnspecifiedVisibility">
<errorLevel type="suppress">
<directory name="tests"/>
</errorLevel>
</PluginIssue>
<ArgumentTypeCoercion>
<errorLevel type="suppress">
<referencedFunction name="ReflectionClass::__construct"/>
</errorLevel>
</ArgumentTypeCoercion>
<DeprecatedConstant errorLevel="suppress"/>
<MissingImmutableAnnotation errorLevel="suppress"/>
<MissingThrowsDocblock>
<errorLevel type="suppress">
<directory name="tests"/>
</errorLevel>
</MissingThrowsDocblock>
<MixedAssignment errorLevel="suppress"/>
<PossiblyUnusedMethod>
<errorLevel type="suppress">
<directory name="tests"/>
</errorLevel>
</PossiblyUnusedMethod>
<RedundantCondition>
<errorLevel type="suppress">
<directory name="tests"/>
</errorLevel>
</RedundantCondition>
<RedundantConditionGivenDocblockType>
<errorLevel type="suppress">
<directory name="tests"/>
</errorLevel>
</RedundantConditionGivenDocblockType>
<UnusedConstructor errorLevel="suppress"/>
</issueHandlers>
<forbiddenFunctions>
<function name="dd"/>
<function name="die"/>
<function name="dump"/>
<function name="echo"/>
<function name="empty"/>
<function name="eval"/>
<function name="exit"/>
<function name="print"/>
<function name="sleep"/>
<function name="usleep"/>
</forbiddenFunctions>
<stubs>
<file name="stubs/PhpParser/Comment.phpstub"/>
<file name="stubs/PhpParser/Node/Expr/Variable.phpstub"/>
<file name="stubs/PhpParser/Node/Identifier.phpstub"/>
<file name="stubs/PhpParser/Node/IntersectionType.phpstub"/>
<file name="stubs/PhpParser/Node/Name.phpstub"/>
<file name="stubs/PhpParser/Node/Stmt/TraitUseAdaptation/Alias.phpstub"/>
<file name="stubs/PhpParser/Node/UnionType.phpstub"/>
<file name="stubs/PHPStan/PhpDocParser/Ast/ConstExpr/ConstExprArrayNode.phpstub"/>
<file name="stubs/PHPStan/PhpDocParser/Ast/ConstExpr/ConstFetchNode.phpstub"/>
<file name="stubs/PHPStan/PhpDocParser/Ast/PhpDoc/MethodTagValueNode.phpstub"/>
<file name="stubs/PHPStan/PhpDocParser/Ast/PhpDoc/PhpDocTagNode.phpstub"/>
<file name="stubs/PHPStan/PhpDocParser/Ast/PhpDoc/TemplateTagValueNode.phpstub"/>
<file name="stubs/PHPStan/PhpDocParser/Ast/PhpDoc/TypeAliasImportTagValueNode.phpstub"/>
<file name="stubs/PHPStan/PhpDocParser/Ast/PhpDoc/TypeAliasTagValueNode.phpstub"/>
<file name="stubs/PHPStan/PhpDocParser/Ast/Type/CallableTypeNode.phpstub"/>
<file name="stubs/PHPStan/PhpDocParser/Ast/Type/GenericTypeNode.phpstub"/>
<file name="stubs/PHPStan/PhpDocParser/Ast/Type/IdentifierTypeNode.phpstub"/>
<file name="stubs/PHPStan/PhpDocParser/Ast/Type/IntersectionTypeNode.phpstub"/>
<file name="stubs/PHPStan/PhpDocParser/Ast/Type/UnionTypeNode.phpstub"/>
<file name="stubs/Reflection.phpstub"/>
<file name="tests/Internal/NativeAdapter/Fixtures/classes.php" preloadClasses="true"/>
<file name="tests/Internal/NativeAdapter/Fixtures/classes_php82.php" preloadClasses="true"/>
<file name="tests/Internal/NativeAdapter/Fixtures/classes_php83.php" preloadClasses="true"/>
</stubs>
</psalm>