repod/rector.php
Michel Roux 1d8ea08798
All checks were successful
repod / xml (push) Successful in 22s
repod / php (push) Successful in 1m15s
repod / nodejs (push) Successful in 1m6s
repod / release (push) Has been skipped
style: 🎨 add nextcloud/rector
2024-11-12 10:11:21 +01:00

35 lines
637 B
PHP

<?php
declare(strict_types=1);
use Nextcloud\Rector\Set\NextcloudSets;
use Rector\Config\RectorConfig;
return RectorConfig::configure()
->withPaths([
__DIR__.'/appinfo',
__DIR__.'/lib',
])
->withPhpSets(php81: true)
->withSets([
NextcloudSets::NEXTCLOUD_27,
])
->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,
)
;