2025-11-19 04:31:40 -05:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
$nextcloudDir = dirname(__DIR__);
|
|
|
|
|
|
|
|
|
|
return (require __DIR__ . '/rector-shared.php')
|
|
|
|
|
->withPaths([
|
|
|
|
|
$nextcloudDir . '/build/rector-strict.php',
|
2025-10-08 12:22:10 -04:00
|
|
|
$nextcloudDir . '/core/BackgroundJobs/ExpirePreviewsJob.php',
|
2026-02-16 02:41:03 -05:00
|
|
|
$nextcloudDir . '/lib/public/IContainer.php',
|
2026-02-12 06:05:11 -05:00
|
|
|
$nextcloudDir . '/apps/dav/lib/Connector/Sabre/Node.php',
|
2026-02-12 06:09:19 -05:00
|
|
|
$nextcloudDir . '/apps/files_versions/lib/Versions/IMetadataVersion.php',
|
2026-02-12 06:24:33 -05:00
|
|
|
$nextcloudDir . '/lib/private/Settings/AuthorizedGroup.php',
|
|
|
|
|
$nextcloudDir . '/lib/private/Settings/AuthorizedGroupMapper.php',
|
|
|
|
|
$nextcloudDir . '/apps/settings/lib/Service/AuthorizedGroupService.php',
|
2025-11-19 04:31:40 -05:00
|
|
|
])
|
|
|
|
|
->withPreparedSets(
|
|
|
|
|
deadCode: true,
|
|
|
|
|
codeQuality: true,
|
|
|
|
|
codingStyle: true,
|
|
|
|
|
typeDeclarations: true,
|
|
|
|
|
typeDeclarationDocblocks: true,
|
|
|
|
|
privatization: true,
|
|
|
|
|
instanceOf: true,
|
|
|
|
|
earlyReturn: true,
|
|
|
|
|
rectorPreset: true,
|
|
|
|
|
phpunitCodeQuality: true,
|
|
|
|
|
doctrineCodeQuality: true,
|
|
|
|
|
symfonyCodeQuality: true,
|
|
|
|
|
symfonyConfigs: true,
|
|
|
|
|
)->withPhpSets(
|
|
|
|
|
php82: true,
|
|
|
|
|
);
|