forked from symfony/symfony
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpsalm.xml
More file actions
80 lines (78 loc) · 3.26 KB
/
Copy pathpsalm.xml
File metadata and controls
80 lines (78 loc) · 3.26 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
<?xml version="1.0"?>
<psalm
errorLevel="5"
resolveFromConfigFile="true"
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"
cacheDirectory="./.github/sa-tools/psalm-cache/"
errorBaseline=".github/sa-tools/psalm.baseline.xml"
findUnusedBaselineEntry="false"
findUnusedCode="false"
findUnusedIssueHandlerSuppression="false"
ensureOverrideAttribute="false"
>
<projectFiles>
<directory name="src" />
<ignoreFiles>
<directory name="src/Symfony/*/*/Tests" />
<directory name="src/Symfony/*/*/*/Tests" />
<directory name="src/Symfony/*/*/*/*/Tests" />
<directory name="src/Symfony/Component/Intl/Resources/data/" />
<directory name="src/Symfony/Component/Emoji/Resources/data/" />
<!-- these templates are include()'d in HtmlErrorRenderer's scope, so they can't be analyzed standalone -->
<directory name="src/Symfony/Component/ErrorHandler/Resources/views/" />
<directory name="vendor" />
</ignoreFiles>
</projectFiles>
<issueHandlers>
<MissingImmutableAnnotation>
<errorLevel type="suppress">
<!--
DatePoint is immutable, but the class cannot be annotated as
such because its constructor reads the clock.
-->
<file name="src/Symfony/Component/Clock/DatePoint.php" />
</errorLevel>
</MissingImmutableAnnotation>
<UndefinedClass>
<errorLevel type="suppress">
<!-- These classes have been added in PHP 8.4 -->
<referencedClass name="BcMath\Number"/>
<!-- These classes have been added in PHP 8.5 -->
<referencedClass name="CurlSharePersistentHandle"/>
<!-- These classes come from optional extensions -->
<referencedClass name="Couchbase\Collection"/>
<referencedClass name="Relay\Cluster"/>
<referencedClass name="Relay\Relay"/>
</errorLevel>
</UndefinedClass>
<UnusedClass>
<errorLevel type="suppress">
<!--
Because we don't analyze our tests or fixtures, we will
get a lot of false positives regarding unused classes.
-->
<directory name="src/Symfony" />
</errorLevel>
</UnusedClass>
<UnusedConstructor>
<errorLevel type="suppress">
<!--
We use private constructors to avoid instantiation.
This kind of error is bogus in most cases.
-->
<directory name="src/Symfony" />
</errorLevel>
</UnusedConstructor>
<UndefinedFunction>
<errorLevel type="suppress">
<!-- These functions have been added in PHP 8.5 -->
<referencedFunction name="curl_share_init_persistent"/>
</errorLevel>
</UndefinedFunction>
</issueHandlers>
<forbiddenFunctions>
<function name="empty"/>
</forbiddenFunctions>
</psalm>