-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpsalm.xml
More file actions
45 lines (45 loc) · 1.93 KB
/
Copy pathpsalm.xml
File metadata and controls
45 lines (45 loc) · 1.93 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
<?xml version="1.0"?>
<psalm
errorLevel="4"
phpVersion="8.1"
resolveFromConfigFile="true"
findUnusedCode="true"
autoloader="tests/psalm/ocp-autoload.php"
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"
errorBaseline="psalm-baseline.xml"
>
<projectFiles>
<directory name="lib" />
<ignoreFiles>
<directory name="vendor" />
</ignoreFiles>
</projectFiles>
<issueHandlers>
<!-- The #[\Override] attribute is PHP 8.3+, but the app supports PHP
8.1+ (see appinfo/info.xml), so requiring it project-wide isn't
appropriate. -->
<MissingOverrideAttribute errorLevel="suppress" />
<!-- Classes that exist at runtime but aren't shipped in nextcloud/ocp
(and can't be cleanly stubbed because we call their API, or they
pull in further unshipped internals). IRootFolder & friends DO
resolve, via tests/psalm/missing-class-stubs.php. -->
<UndefinedClass>
<errorLevel type="suppress">
<referencedClass name="OCP\Image" />
<referencedClass name="OC" />
<referencedClass name="OC\Security\CSRF\CsrfTokenManager" />
<referencedClass name="Doctrine\DBAL\Schema\Table" />
<referencedClass name="OCA\Files\Event\LoadAdditionalScriptsEvent" />
<referencedClass name="OCA\Files_Sharing\Event\BeforeTemplateRenderedEvent" />
<referencedClass name="OCA\Viewer\Event\LoadViewer" />
</errorLevel>
</UndefinedClass>
<UndefinedDocblockClass>
<errorLevel type="suppress">
<referencedClass name="Doctrine\DBAL\Schema\Table" />
</errorLevel>
</UndefinedDocblockClass>
</issueHandlers>
</psalm>