add nextcloud/rector

This commit is contained in:
Michel Roux 2024-11-12 10:19:22 +01:00
parent 16ad8c7f42
commit 3cb5605947
2 changed files with 7 additions and 1 deletions

View File

@ -25,6 +25,7 @@
"nextcloud/ocp": "^30.0.2",
"roave/security-advisories": "dev-latest",
"nextcloud/coding-standard": "^1.3.2",
"nextcloud/rector": "^0.2.1",
"rector/rector": "^1.2.10",
"vimeo/psalm": "^5.26.1"
},

View File

@ -2,13 +2,18 @@
declare(strict_types=1);
use Nextcloud\Rector\Set\NextcloudSets;
use Rector\Config\RectorConfig;
return RectorConfig::configure()
->withPaths([
__DIR__.'/appinfo',
__DIR__.'/lib',
])
->withPhpSets(php80: true)
->withPhpSets(php81: true)
->withSets([
NextcloudSets::NEXTCLOUD_27,
])
->withPreparedSets(
deadCode: true,
codeQuality: true,