-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpsalm.xml
65 lines (59 loc) · 2.46 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
<?xml version="1.0"?>
<psalm
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
errorLevel="1"
findUnusedBaselineEntry="true"
findUnusedCode="false"
findUnusedIssueHandlerSuppression="true"
>
<projectFiles>
<directory name="src/Collections" />
<directory name="src/Iterable" />
<directory name="src/Maybe" />
<directory name="src/Result" />
<directory name="tests" />
<directory name="tools/Psalm" />
<ignoreFiles>
<directory name="vendor" />
</ignoreFiles>
</projectFiles>
<plugins>
<pluginClass class="Kuria\Tools\Psalm\Plugin" />
</plugins>
<issueHandlers>
<!-- for manual testing -->
<ForbiddenCode errorLevel="suppress" />
<MissingFile errorLevel="suppress" />
<!-- collection classes only use new static() with the same type (@psalm-consistent-templates is too restrictive) -->
<UnsafeGenericInstantiation>
<errorLevel type="suppress">
<directory name="src/Collections" />
</errorLevel>
</UnsafeGenericInstantiation>
<!-- $arr2 argument of array user intersect/diff functions is optional (false-positive) -->
<PossiblyInvalidArgument>
<errorLevel type="suppress">
<directory name="src/Collections" />
<referencedFunction name="array_uintersect" />
<referencedFunction name="array_udiff" />
</errorLevel>
</PossiblyInvalidArgument>
<MixedArgumentTypeCoercion>
<errorLevel type="suppress">
<directory name="src/Collections" />
<referencedFunction name="array_intersect_ukey" />
<referencedFunction name="array_diff_ukey" />
</errorLevel>
</MixedArgumentTypeCoercion>
<!-- covariant callable argument (false-positive, https://github.com/vimeo/psalm/issues/10848) -->
<InvalidTemplateParam>
<errorLevel type="suppress">
<directory name="src/Maybe" />
<directory name="src/Result" />
<directory name="src/Collections" /> <!-- @psalm-if-this-is limitations - https://github.com/vimeo/psalm/discussions/10864 -->
</errorLevel>
</InvalidTemplateParam>
</issueHandlers>
</psalm>