summaryrefslogtreecommitdiffstats
path: root/psalm.xml
blob: ae059566555399ccef1549368394451015dc3830 (plain)
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
<?xml version="1.0"?>
<psalm
	errorLevel="4"
	resolveFromConfigFile="true"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns="https://getpsalm.org/schema/config"
	xsi:schemaLocation="https://getpsalm.org/schema/config"
>
	<projectFiles>
		<directory name="apps"/>
		<directory name="core"/>
		<directory name="lib"/>
		<directory name="ocm-provider"/>
		<directory name="ocs"/>
		<directory name="ocs-provider"/>
		<file name="index.php"/>
		<file name="public.php"/>
		<file name="remote.php"/>
		<file name="status.php"/>
		<file name="version.php"/>
		<ignoreFiles>
			<directory name="apps/**/composer"/>
			<directory name="apps/**/tests"/>
			<directory name="apps/files_external/3rdparty"/>
			<directory name="lib/composer"/>
			<directory name="lib/l10n"/>
		</ignoreFiles>
	</projectFiles>
	<extraFiles>
		<directory name="3rdparty"/>
		<directory name="apps/files_external/3rdparty"/>
	</extraFiles>
	<stubs>
		<file name="build/stubs/apcu.php"/>
		<file name="build/stubs/imagick.php"/>
		<file name="build/stubs/memcached.php"/>
		<file name="build/stubs/redis.php"/>
		<file name="build/stubs/sftp.php"/>
		<file name="build/stubs/ssh2.php"/>
	</stubs>
	<issueHandlers>
		<UndefinedFunction>
			<errorLevel type="suppress">
				<referencedFunction name="p"/>
				<referencedFunction name="print_unescaped"/>
				<referencedFunction name="script"/>
				<referencedFunction name="style"/>
				<directory name="apps/**/templates"/>
				<directory name="core/templates"/>
			</errorLevel>
		</UndefinedFunction>
		<UndefinedGlobalVariable>
			<errorLevel type="suppress">
				<referencedVariable name="l" />
				<referencedVariable name="_" />
				<directory name="apps/**/templates"/>
				<directory name="core/templates"/>
			</errorLevel>
		</UndefinedGlobalVariable>
	</issueHandlers>
</psalm>