-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathpsalm.xml
More file actions
85 lines (74 loc) · 3.78 KB
/
Copy pathpsalm.xml
File metadata and controls
85 lines (74 loc) · 3.78 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
<?xml version="1.0"?>
<psalm
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
errorLevel="1"
resolveFromConfigFile="true"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
phpVersion="7.4"
strictBinaryOperands="true"
disableSuppressAll="true"
ignoreInternalFunctionFalseReturn="false"
ignoreInternalFunctionNullReturn="false"
findUnusedPsalmSuppress="true"
ensureArrayIntOffsetsExist="true"
sealAllMethods="true"
sealAllProperties="true"
autoloader="psalm/bootstrap.php"
errorBaseline="psalm/tests-baseline.xml"
>
<projectFiles>
<directory name="src"/>
<directory name="bin/php"/>
<ignoreFiles>
<directory name="vendor"/>
<!-- Only references global WP constants -->
<file name="src/Snicco/Component/eloquent/src/WPDatabaseSettingsAPI.php"/>
<!-- These two files are not our code. @see https://github.com/php-cache/integration-tests/issues/117 -->
<file name="src/Snicco/Component/better-wp-cache/tests/wordpress/WPObjectCachePsr6IntegrationTest.php"/>
<file name="src/Snicco/Component/better-wp-cache/tests/wordpress/WPObjectCachePsr16IntegrationTest.php"/>
<file name="src/Snicco/Component/better-wp-cache/tests/wordpress/TaggingIntegrationTest.php"/>
<!-- This file is part of symfony/console -->
<file name="src/Snicco/Component/better-wp-cli/src/Style/Terminal.php"/>
<directory name="src/Snicco/Component/better-wp-cli/tests/_support"/>
</ignoreFiles>
</projectFiles>
<issueHandlers>
<RedundantConditionGivenDocblockType errorLevel="suppress"/>
<RedundantPropertyInitializationCheck errorLevel="suppress"/>
<MoreSpecificReturnType>
<errorLevel type="suppress">
<!-- This is a final class and @return static makes no sense. https://github.com/vimeo/psalm/issues/5802 -->
<file name="src/Snicco/Component/http-routing/src/Http/Psr7/Request.php"/>
<file name="src/Snicco/Component/http-routing/src/Routing/RoutingConfigurator/Configurator.php"/>
<file name="src/Snicco/Component/better-wp-cache/src/WPCacheItem.php"/>
</errorLevel>
</MoreSpecificReturnType>
<LessSpecificReturnStatement>
<errorLevel type="suppress">
<!-- This is a final class and @return static makes no sense. https://github.com/vimeo/psalm/issues/5802 -->
<file name="src/Snicco/Component/http-routing/src/Http/Psr7/Request.php"/>
<file name="src/Snicco/Component/http-routing/src/Routing/RoutingConfigurator/Configurator.php"/>
<file name="src/Snicco/Component/better-wp-cache/src/WPCacheItem.php"/>
</errorLevel>
</LessSpecificReturnStatement>
<MixedAssignment>
<errorLevel type="suppress">
<!-- Deals with mixed arguments by design -->
<file name="src/Snicco/Component/str-arr/tests/ArrTest.php"/>
</errorLevel>
</MixedAssignment>
<UndefinedMagicMethod>
<errorLevel type="suppress">
<!-- This issue occurs in CI if we don't build codeception modules before running psalm -->
<file name="src/Snicco/Component/better-wp-cli/tests/wordpress/WPCLICest.php"/>
</errorLevel>
</UndefinedMagicMethod>
</issueHandlers>
<globals>
<var name="GLOBALS" type="array{phpmailer: \PHPMailer\PHPMailer\PHPMailer, wpdb: \wpdb}"/>
</globals>
<plugins>
<plugin filename="psalm/Plugins/TestCaseClasses.php"/>
</plugins>
</psalm>