nextcloud/psalm-strict.xml
Ferdinand Thiessen 3f8710500c chore: apply strict rector rules on appstore
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2026-05-05 10:41:04 +02:00

71 lines
2.7 KiB
XML

<?xml version="1.0"?>
<!--
- SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
- SPDX-License-Identifier: AGPL-3.0-or-later
-->
<psalm
errorLevel="1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config https://getpsalm.org/schema/config"
resolveFromConfigFile="false"
findUnusedBaselineEntry="true"
findUnusedCode="false"
findUnusedPsalmSuppress="true"
findUnusedVariablesAndParams="true"
phpVersion="8.2"
>
<plugins>
<pluginClass class="Psalm\PhpUnitPlugin\Plugin"/>
</plugins>
<projectFiles>
<file name="core/BackgroundJobs/ExpirePreviewsJob.php"/>
<file name="lib/public/IContainer.php"/>
<file name="apps/dav/lib/Connector/Sabre/Node.php"/>
<file name="apps/files_versions/lib/Versions/IMetadataVersion.php"/>
<file name="lib/private/Settings/AuthorizedGroup.php"/>
<file name="lib/private/Settings/AuthorizedGroupMapper.php"/>
<file name="apps/settings/lib/Service/AuthorizedGroupService.php"/>
<file name="lib/private/Files/Storage/Storage.php"/>
<file name="lib/private/Files/Cache/Storage.php"/>
<file name="lib/private/Files/Cache/StorageGlobal.php"/>
<file name="lib/private/Files/Storage/Wrapper/Wrapper.php"/>
<file name="build/psalm/ITypedQueryBuilderTest.php"/>
<file name="lib/private/DB/QueryBuilder/TypedQueryBuilder.php"/>
<file name="lib/public/DB/QueryBuilder/ITypedQueryBuilder.php"/>
<file name="lib/private/Share20/ShareHelper.php"/>
<file name="lib/public/Share/IShareHelper.php"/>
<directory name="apps/appstore/lib" />
<ignoreFiles>
<!-- Missing types of the AppFetcher and the OC_Apps class for return types -->
<file name="apps/appstore/lib/Controller/ApiController.php" />
<!-- ... -->
<directory name="apps/**/composer"/>
<directory name="lib/composer"/>
<directory name="lib/l10n"/>
<directory name="3rdparty"/>
<directory name="lib/public"/>
<directory name="lib/private"/>
<directory name="build"/>
</ignoreFiles>
</projectFiles>
<extraFiles>
<directory name="apps/dav/lib"/>
<directory name="apps/settings/lib"/>
<!-- As long as the files are not in the projectFiles list, we need to include them here to make psalm aware of our interfaces -->
<directory name="lib/private"/>
<directory name="lib/public"/>
<directory name="3rdparty"/>
</extraFiles>
<stubs>
<!-- Psalm does not find methods in here through <extraFiles/> 🤷‍♀️ -->
<file name="3rdparty/sabre/uri/lib/functions.php"/>
</stubs>
<issueHandlers>
<InternalMethod>
<errorLevel type="suppress">
<directory name="."/>
</errorLevel>
</InternalMethod>
</issueHandlers>
</psalm>