-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathpsalm.xml
70 lines (70 loc) · 2.69 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
66
67
68
69
70
<?xml version="1.0"?>
<psalm
cacheDirectory="./.psalm-cache"
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"
findUnusedPsalmSuppress="true"
findUnusedCode="true"
findUnusedBaselineEntry="true"
errorBaseline="psalm-baseline.xml"
>
<projectFiles>
<directory name="src"/>
<directory name="test"/>
<directory name="benchmark"/>
<ignoreFiles>
<directory name="vendor"/>
</ignoreFiles>
</projectFiles>
<stubs>
<file name="psalm/Redis.stub.php"/>
</stubs>
<issueHandlers>
<InvalidThrow>
<errorLevel type="suppress">
<referencedClass name="Laminas\Cache\Exception\ExceptionInterface"/>
</errorLevel>
</InvalidThrow>
<InternalMethod>
<errorLevel type="suppress">
<referencedMethod name="Laminas\Cache\Storage\Adapter\RedisClusterOptions::setResourceManager"/>
</errorLevel>
</InternalMethod>
<!--
Since these are usually suppressed anyway AND psalm is already thinking about removing this issue at all,
suppressing these might be a good idea. See https://github.com/vimeo/psalm/pull/8776 for more information.
-->
<MixedAssignment>
<errorLevel type="suppress">
<directory name="*"/>
</errorLevel>
</MixedAssignment>
<!--
Mark these redundant casts as info as some docblocks are not accurate about the return values.
The redis extension does not provide integer exception codes and thus, passing null as a code starts
being deprecated starting with PHP 8.1 and might trigger errors in PHP 9.0 and thus, lets allow
casts for docblock types. Psalm has also `RedundantCast` which is shown when a native type-hint is being
cast. i.e. such as property type or return type.
-->
<RedundantCastGivenDocblockType>
<errorLevel type="info">
<directory name="*"/>
</errorLevel>
</RedundantCastGivenDocblockType>
<RiskyTruthyFalsyComparison>
<errorLevel type="suppress">
<directory name="test/"/>
</errorLevel>
</RiskyTruthyFalsyComparison>
<UnusedClass>
<errorLevel type="suppress">
<directory name="benchmark/"/>
</errorLevel>
</UnusedClass>
</issueHandlers>
<plugins>
<pluginClass class="Psalm\PhpUnitPlugin\Plugin"/>
</plugins>
</psalm>