2023-01-25 17:03:24 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
2024-09-09 12:03:23 +03:00
|
|
|
|
2024-06-21 16:58:11 +03:00
|
|
|
/**
|
|
|
|
* SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
*/
|
2024-09-09 12:03:23 +03:00
|
|
|
|
2023-01-25 17:03:24 +03:00
|
|
|
use Rector\Config\RectorConfig;
|
2024-09-18 00:25:09 +03:00
|
|
|
use Rector\TypeDeclaration\Rector\Class_\AddTestsVoidReturnTypeWhereNoReturnRector;
|
2023-01-25 17:03:24 +03:00
|
|
|
|
2024-09-09 12:03:23 +03:00
|
|
|
return RectorConfig::configure()
|
|
|
|
->withPaths([
|
2023-01-25 17:03:24 +03:00
|
|
|
__DIR__ . '/lib',
|
|
|
|
__DIR__ . '/tests',
|
2024-09-09 12:03:23 +03:00
|
|
|
])
|
|
|
|
->withSkip([
|
|
|
|
__DIR__ . '/lib/Vendor'
|
2024-09-09 12:22:55 +03:00
|
|
|
])
|
|
|
|
->withPreparedSets(
|
|
|
|
phpunitCodeQuality: true,
|
|
|
|
phpunit: true,
|
2024-09-11 08:31:54 +03:00
|
|
|
)
|
|
|
|
->withPhpSets(
|
2024-09-11 08:37:01 +03:00
|
|
|
php73: true,
|
2024-09-18 00:25:09 +03:00
|
|
|
)
|
|
|
|
->withRules([
|
|
|
|
AddTestsVoidReturnTypeWhereNoReturnRector::class,
|
|
|
|
]);
|