2020-07-10 08:58:33 +00:00
|
|
|
<?xml version="1.0"?>
|
2024-05-09 18:20:32 +00:00
|
|
|
<!--
|
|
|
|
- SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
- SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
-->
|
2020-07-10 08:58:33 +00:00
|
|
|
<psalm
|
|
|
|
errorLevel="4"
|
|
|
|
resolveFromConfigFile="true"
|
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
xmlns="https://getpsalm.org/schema/config"
|
2024-08-16 22:04:55 +00:00
|
|
|
xsi:schemaLocation="https://getpsalm.org/schema/config https://getpsalm.org/schema/config"
|
|
|
|
errorBaseline="build/psalm-baseline.xml"
|
2024-09-22 06:38:31 +00:00
|
|
|
findUnusedBaselineEntry="true"
|
2023-03-24 11:56:06 +00:00
|
|
|
findUnusedCode="false"
|
2024-04-16 15:57:10 +00:00
|
|
|
phpVersion="8.1"
|
2020-07-10 08:58:33 +00:00
|
|
|
>
|
2020-11-20 11:19:59 +00:00
|
|
|
<plugins>
|
|
|
|
<plugin filename="build/psalm/AppFrameworkTainter.php" />
|
2024-07-27 20:34:06 +00:00
|
|
|
<plugin filename="build/psalm/AttributeNamedParameters.php" />
|
2020-11-20 11:19:59 +00:00
|
|
|
</plugins>
|
2020-07-10 08:58:33 +00:00
|
|
|
<projectFiles>
|
2020-12-28 10:26:50 +00:00
|
|
|
<directory name="apps/admin_audit"/>
|
|
|
|
<directory name="apps/cloud_federation_api"/>
|
|
|
|
<directory name="apps/comments"/>
|
|
|
|
<directory name="apps/contactsinteraction"/>
|
|
|
|
<directory name="apps/dashboard"/>
|
|
|
|
<directory name="apps/dav"/>
|
|
|
|
<directory name="apps/encryption"/>
|
|
|
|
<directory name="apps/federatedfilesharing"/>
|
|
|
|
<directory name="apps/federation"/>
|
|
|
|
<directory name="apps/files"/>
|
|
|
|
<directory name="apps/files_external"/>
|
|
|
|
<directory name="apps/files_sharing"/>
|
|
|
|
<directory name="apps/files_trashbin"/>
|
|
|
|
<directory name="apps/files_versions"/>
|
|
|
|
<directory name="apps/lookup_server_connector"/>
|
|
|
|
<directory name="apps/oauth2"/>
|
|
|
|
<directory name="apps/provisioning_api"/>
|
|
|
|
<directory name="apps/settings"/>
|
|
|
|
<directory name="apps/sharebymail"/>
|
|
|
|
<directory name="apps/systemtags"/>
|
|
|
|
<directory name="apps/testing"/>
|
|
|
|
<directory name="apps/theming"/>
|
|
|
|
<directory name="apps/twofactor_backupcodes"/>
|
|
|
|
<directory name="apps/updatenotification"/>
|
|
|
|
<directory name="apps/user_ldap"/>
|
|
|
|
<directory name="apps/user_status"/>
|
|
|
|
<directory name="apps/weather_status"/>
|
2024-06-10 15:35:07 +00:00
|
|
|
<directory name="apps/webhook_listeners"/>
|
2020-12-28 10:26:50 +00:00
|
|
|
<directory name="apps/workflowengine"/>
|
2020-07-10 08:58:33 +00:00
|
|
|
<directory name="core"/>
|
|
|
|
<directory name="lib"/>
|
|
|
|
<directory name="ocs"/>
|
|
|
|
<directory name="ocs-provider"/>
|
2024-02-08 12:58:49 +00:00
|
|
|
<file name="cron.php"/>
|
2020-07-10 08:58:33 +00:00
|
|
|
<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"/>
|
2020-07-10 10:30:38 +00:00
|
|
|
<directory name="apps/files_external/3rdparty"/>
|
2020-07-10 08:58:33 +00:00
|
|
|
<directory name="lib/composer"/>
|
|
|
|
<directory name="lib/l10n"/>
|
|
|
|
</ignoreFiles>
|
|
|
|
</projectFiles>
|
|
|
|
<extraFiles>
|
|
|
|
<directory name="3rdparty"/>
|
2020-07-10 10:30:38 +00:00
|
|
|
<directory name="apps/files_external/3rdparty"/>
|
2020-07-10 08:58:33 +00:00
|
|
|
</extraFiles>
|
|
|
|
<stubs>
|
|
|
|
<file name="build/stubs/apcu.php"/>
|
2020-08-18 08:10:38 +00:00
|
|
|
<file name="build/stubs/gd.php"/>
|
2020-07-10 08:58:33 +00:00
|
|
|
<file name="build/stubs/imagick.php"/>
|
2020-08-18 08:10:38 +00:00
|
|
|
<file name="build/stubs/intl.php"/>
|
|
|
|
<file name="build/stubs/IntlChar.php"/>
|
2023-07-05 08:17:49 +00:00
|
|
|
<file name="build/stubs/SensitiveParameter.phpstub"/>
|
2020-08-18 08:10:38 +00:00
|
|
|
<file name="build/stubs/ldap.php"/>
|
2020-07-10 08:58:33 +00:00
|
|
|
<file name="build/stubs/memcached.php"/>
|
|
|
|
<file name="build/stubs/redis.php"/>
|
2020-08-18 08:10:38 +00:00
|
|
|
<file name="build/stubs/redis_cluster.php"/>
|
2020-07-10 10:30:38 +00:00
|
|
|
<file name="build/stubs/sftp.php"/>
|
|
|
|
<file name="build/stubs/ssh2.php"/>
|
2020-08-18 08:10:38 +00:00
|
|
|
<file name="build/stubs/xsl.php"/>
|
2022-01-06 15:57:32 +00:00
|
|
|
<file name="build/stubs/ftp.php"/>
|
|
|
|
<file name="build/stubs/pcntl.php"/>
|
2022-04-12 09:10:04 +00:00
|
|
|
<file name="build/stubs/zip.php"/>
|
2023-03-24 11:54:30 +00:00
|
|
|
<file name="build/stubs/psr_container.php"/>
|
2023-03-02 22:23:57 +00:00
|
|
|
<file name="3rdparty/sabre/uri/lib/functions.php" />
|
2023-09-06 13:53:53 +00:00
|
|
|
<file name="build/stubs/app_api.php" />
|
2020-07-10 08:58:33 +00:00
|
|
|
</stubs>
|
2020-07-10 12:08:32 +00:00
|
|
|
<issueHandlers>
|
2023-07-03 08:05:53 +00:00
|
|
|
<LessSpecificReturnStatement errorLevel="error"/>
|
|
|
|
<LessSpecificReturnType errorLevel="error"/>
|
|
|
|
<LessSpecificImplementedReturnType errorLevel="error"/>
|
|
|
|
<MoreSpecificReturnType errorLevel="error"/>
|
2021-09-14 09:15:26 +00:00
|
|
|
<UndefinedClass>
|
|
|
|
<errorLevel type="suppress">
|
2024-02-26 15:30:16 +00:00
|
|
|
<referencedClass name="OCA\Circles\CirclesManager"/>
|
|
|
|
<referencedClass name="OCA\Circles\Exceptions\CircleNotFoundException"/>
|
|
|
|
<referencedClass name="OCA\Circles\Model\Circle"/>
|
|
|
|
<referencedClass name="OCA\Circles\Model\Member"/>
|
2021-09-14 09:15:26 +00:00
|
|
|
<referencedClass name="OCA\GroupFolders\Mount\GroupFolderStorage"/>
|
2021-10-04 07:54:58 +00:00
|
|
|
<referencedClass name="OCA\TwoFactorNextcloudNotification\Controller\APIController"/>
|
2023-06-28 10:27:55 +00:00
|
|
|
<referencedClass name="OCA\GlobalSiteSelector\Service\SlaveService"/>
|
2021-09-14 09:15:26 +00:00
|
|
|
</errorLevel>
|
|
|
|
</UndefinedClass>
|
2020-07-10 12:08:32 +00:00
|
|
|
<UndefinedFunction>
|
|
|
|
<errorLevel type="suppress">
|
2020-08-14 14:18:23 +00:00
|
|
|
<!-- template functions: https://github.com/nextcloud/server/blob/6e8e34fef920a073118c22111f0f31eb3b3a91dc/lib/private/legacy/template/functions.php -->
|
2020-07-10 12:08:32 +00:00
|
|
|
<referencedFunction name="p"/>
|
2020-08-14 14:18:23 +00:00
|
|
|
<referencedFunction name="emit_css_tag"/>
|
|
|
|
<referencedFunction name="emit_css_loading_tags"/>
|
|
|
|
<referencedFunction name="emit_script_tag"/>
|
|
|
|
<referencedFunction name="emit_script_loading_tags"/>
|
2020-07-10 12:08:32 +00:00
|
|
|
<referencedFunction name="print_unescaped"/>
|
|
|
|
<referencedFunction name="script"/>
|
2020-08-14 14:18:23 +00:00
|
|
|
<referencedFunction name="vendor_script"/>
|
2020-07-10 12:08:32 +00:00
|
|
|
<referencedFunction name="style"/>
|
2020-08-14 14:18:23 +00:00
|
|
|
<referencedFunction name="vendor_style"/>
|
|
|
|
<referencedFunction name="translation"/>
|
|
|
|
<referencedFunction name="component"/>
|
|
|
|
<referencedFunction name="link_to"/>
|
|
|
|
<referencedFunction name="link_to_docs"/>
|
|
|
|
<referencedFunction name="image_path"/>
|
|
|
|
<referencedFunction name="mimetype_icon"/>
|
|
|
|
<referencedFunction name="preview_icon"/>
|
|
|
|
<referencedFunction name="publicPreview_icon"/>
|
|
|
|
<referencedFunction name="human_file_size"/>
|
|
|
|
<referencedFunction name="strip_time"/>
|
|
|
|
<referencedFunction name="relative_modified_date"/>
|
|
|
|
<referencedFunction name="html_select_options"/>
|
2020-07-10 12:08:32 +00:00
|
|
|
</errorLevel>
|
|
|
|
</UndefinedFunction>
|
2020-08-10 20:25:51 +00:00
|
|
|
<UndefinedGlobalVariable>
|
|
|
|
<errorLevel type="suppress">
|
2020-08-14 14:06:33 +00:00
|
|
|
<referencedVariable name="$_"/>
|
2020-08-14 14:18:23 +00:00
|
|
|
<referencedVariable name="$l"/>
|
|
|
|
<referencedVariable name="$theme"/>
|
2020-08-14 12:37:05 +00:00
|
|
|
<!-- false positive: https://github.com/nextcloud/server/blob/cb057829f72c70e819f456edfadbb29d72dba832/lib/private/Console/Application.php#L92 -->
|
|
|
|
<file name="core/register_command.php" />
|
2020-08-10 20:25:51 +00:00
|
|
|
</errorLevel>
|
|
|
|
</UndefinedGlobalVariable>
|
2020-12-08 16:14:06 +00:00
|
|
|
<UndefinedDocblockClass>
|
|
|
|
<errorLevel type="suppress">
|
|
|
|
<!-- Helper classes for sharing API integration from other apps -->
|
|
|
|
<referencedClass name="OCA\Deck\Sharing\ShareAPIHelper" />
|
|
|
|
<referencedClass name="OCA\Talk\Share\Helper\DeletedShareAPIController" />
|
2023-06-28 10:27:55 +00:00
|
|
|
<referencedClass name="OCA\GlobalSiteSelector\Service\SlaveService"/>
|
2020-12-08 16:14:06 +00:00
|
|
|
</errorLevel>
|
|
|
|
</UndefinedDocblockClass>
|
2024-08-07 17:35:50 +00:00
|
|
|
<AmbiguousConstantInheritance>
|
|
|
|
<errorLevel type="suppress">
|
|
|
|
<!-- false positive: https://github.com/vimeo/psalm/issues/7818 -->
|
|
|
|
<referencedConstant name="OC\Memcache\Redis::DEFAULT_TTL" />
|
|
|
|
<referencedConstant name="OC\Memcache\LoggerWrapperCache::DEFAULT_TTL" />
|
|
|
|
</errorLevel>
|
|
|
|
</AmbiguousConstantInheritance>
|
2020-07-10 12:08:32 +00:00
|
|
|
</issueHandlers>
|
2020-07-10 08:58:33 +00:00
|
|
|
</psalm>
|