forked from redaxo/redaxo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
psalm.xml
100 lines (100 loc) · 4.5 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
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
<?xml version="1.0"?>
<psalm
errorLevel="1"
autoloader=".tools/constants.php"
findUnusedPsalmSuppress="true"
errorBaseline=".tools/psalm/baseline.xml"
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"
>
<projectFiles>
<!-- restrict to core and core addons, ignore other locally installed addons -->
<directory name="redaxo/src/core"/>
<directory name="redaxo/src/addons/backup"/>
<directory name="redaxo/src/addons/be_style"/>
<directory name="redaxo/src/addons/cronjob"/>
<directory name="redaxo/src/addons/debug"/>
<directory name="redaxo/src/addons/install"/>
<directory name="redaxo/src/addons/media_manager"/>
<directory name="redaxo/src/addons/mediapool"/>
<directory name="redaxo/src/addons/metainfo"/>
<directory name="redaxo/src/addons/phpmailer"/>
<directory name="redaxo/src/addons/project"/>
<directory name="redaxo/src/addons/structure"/>
<directory name="redaxo/src/addons/users"/>
<ignoreFiles>
<directory name="redaxo/src/addons/backup/vendor/" />
<directory name="redaxo/src/addons/be_style/vendor/" />
<directory name="redaxo/src/addons/debug/vendor/" />
<directory name="redaxo/src/addons/phpmailer/vendor/" />
<directory name="redaxo/src/core/vendor/" />
<file name="redaxo/src/core/.phpstorm.meta.php" />
</ignoreFiles>
</projectFiles>
<stubs>
<file name="redaxo/src/core/.phpstorm.meta.php" />
</stubs>
<universalObjectCrates>
<class name="rex_fragment" />
</universalObjectCrates>
<forbiddenFunctions>
<function name="basename"/>
<function name="dd"/>
<function name="dump"/>
</forbiddenFunctions>
<plugins>
<pluginClass class="Redaxo\PsalmPlugin\Plugin" />
<pluginClass class="Psalm\PhpUnitPlugin\Plugin" />
<pluginClass class="Psalm\SymfonyPsalmPlugin\Plugin" />
</plugins>
<issueHandlers>
<Trace errorLevel="error"/> <!-- https://psalm.dev/docs/running_psalm/issues/Trace/ -->
<InvalidGlobal>
<errorLevel type="info">
<file name="redaxo/src/addons/mediapool/pages/index.php"/>
<file name="redaxo/src/addons/mediapool/pages/upload.php"/>
<file name="redaxo/src/core/pages/login.php"/>
</errorLevel>
</InvalidGlobal>
<UnnecessaryVarAnnotation>
<errorLevel type="suppress">
<!-- Fragments always contain a `@var rex_fragment $this` annotation, which is unused for psalm -->
<directory name="redaxo/src/addons/structure/plugins/content/fragments"/>
<directory name="redaxo/src/addons/structure/plugins/history/fragments"/>
<directory name="redaxo/src/core/fragments"/>
</errorLevel>
</UnnecessaryVarAnnotation>
<!-- level 2 issues - slightly lazy code writing, but provably low false-negatives -->
<DeprecatedMethod>
<errorLevel type="info">
<referencedMethod name="rex_string::versionCompare"/>
</errorLevel>
</DeprecatedMethod>
<DocblockTypeContradiction errorLevel="info" />
<InternalClass errorLevel="info" />
<InternalMethod errorLevel="info" />
<InternalProperty errorLevel="info" />
<MissingClosureParamType errorLevel="info" />
<MissingClosureReturnType errorLevel="info" />
<MissingConstructor>
<errorLevel type="suppress">
<file name="vendor/phpunit/phpunit/src/Framework/TestCase.php" />
</errorLevel>
</MissingConstructor>
<MissingParamType errorLevel="info" />
<MissingPropertyType errorLevel="info" />
<MissingReturnType errorLevel="info" />
<PropertyNotSetInConstructor errorLevel="info" />
<RawObjectIteration>
<errorLevel type="info">
<file name="redaxo/src/core/lib/api_function.php"/>
</errorLevel>
</RawObjectIteration>
<RedundantCastGivenDocblockType errorLevel="info" />
<RedundantConditionGivenDocblockType errorLevel="info" />
<RedundantFunctionCallGivenDocblockType errorLevel="info" />
<UnresolvableInclude errorLevel="suppress" />
<UnsafeInstantiation errorLevel="info" />
</issueHandlers>
</psalm>