aboutsummaryrefslogtreecommitdiffstats
path: root/psalm.xml
blob: fd5d9bfcbe3117f94fd2d86c7eff49dcfb6caca6 (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
<?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"/>
			</errorLevel>
		</UndefinedFunction>
		<UndefinedGlobalVariable>
			<errorLevel type="suppress">
				<referencedVariable name="l" />
				<referencedVariable name="_" />
				<!-- false positive: https://github.com/nextcloud/server/blob/cb057829f72c70e819f456edfadbb29d72dba832/lib/private/Console/Application.php#L92 -->
				<file name="apps/*/appinfo/register_command.php" />
				<file name="core/register_command.php" />
			</errorLevel>
		</UndefinedGlobalVariable>
	</issueHandlers>
</psalm>