RePod-Nextcloud-App/rector.php

35 lines
637 B
PHP
Raw Permalink Normal View History

2024-11-10 13:18:53 +01:00
<?php
declare(strict_types=1);
2024-11-12 10:11:21 +01:00
use Nextcloud\Rector\Set\NextcloudSets;
2024-11-10 13:18:53 +01:00
use Rector\Config\RectorConfig;
return RectorConfig::configure()
->withPaths([
2024-11-12 10:11:21 +01:00
__DIR__.'/appinfo',
2024-11-10 13:18:53 +01:00
__DIR__.'/lib',
])
2024-11-12 10:11:21 +01:00
->withPhpSets(php81: true)
->withSets([
NextcloudSets::NEXTCLOUD_27,
])
2024-11-10 13:18:53 +01:00
->withPreparedSets(
deadCode: true,
codeQuality: true,
codingStyle: true,
typeDeclarations: true,
privatization: true,
instanceOf: true,
earlyReturn: true,
strictBooleans: true,
rectorPreset: true,
phpunitCodeQuality: true,
doctrineCodeQuality: true,
symfonyCodeQuality: true,
symfonyConfigs: true,
twig: true,
phpunit: true,
)
;