2024-09-19 12:50:06 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
*/
|
|
|
|
|
|
2026-02-09 04:53:58 -05:00
|
|
|
use Rector\TypeDeclaration\Rector\StmtsAwareInterface\SafeDeclareStrictTypesRector;
|
|
|
|
|
|
2024-09-23 05:58:27 -04:00
|
|
|
$nextcloudDir = dirname(__DIR__);
|
|
|
|
|
|
2025-11-19 04:31:40 -05:00
|
|
|
return (require 'rector-shared.php')
|
2024-09-19 12:50:06 -04:00
|
|
|
->withPaths([
|
2024-09-23 05:58:27 -04:00
|
|
|
$nextcloudDir . '/apps',
|
2025-05-14 09:51:42 -04:00
|
|
|
$nextcloudDir . '/core',
|
2025-05-14 18:44:38 -04:00
|
|
|
$nextcloudDir . '/ocs',
|
|
|
|
|
$nextcloudDir . '/ocs-provider',
|
2025-05-14 18:39:44 -04:00
|
|
|
$nextcloudDir . '/console.php',
|
|
|
|
|
$nextcloudDir . '/cron.php',
|
|
|
|
|
$nextcloudDir . '/index.php',
|
|
|
|
|
$nextcloudDir . '/occ',
|
|
|
|
|
$nextcloudDir . '/public.php',
|
|
|
|
|
$nextcloudDir . '/remote.php',
|
2025-05-06 11:18:41 -04:00
|
|
|
$nextcloudDir . '/status.php',
|
2025-05-14 18:39:44 -04:00
|
|
|
$nextcloudDir . '/version.php',
|
2025-11-17 09:32:54 -05:00
|
|
|
$nextcloudDir . '/lib/private',
|
2025-06-12 12:31:40 -04:00
|
|
|
$nextcloudDir . '/tests',
|
2024-09-23 05:58:27 -04:00
|
|
|
// $nextcloudDir . '/config',
|
|
|
|
|
// $nextcloudDir . '/themes',
|
2024-09-19 12:50:06 -04:00
|
|
|
])
|
2026-02-09 04:53:58 -05:00
|
|
|
->withTypeCoverageLevel(0)
|
|
|
|
|
->withRules([
|
|
|
|
|
SafeDeclareStrictTypesRector::class
|
|
|
|
|
]);
|