35 lines
637 B
PHP
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,
|
||
|
)
|
||
|
;
|