add nextcloud/rector
This commit is contained in:
parent
16ad8c7f42
commit
3cb5605947
@ -25,6 +25,7 @@
|
|||||||
"nextcloud/ocp": "^30.0.2",
|
"nextcloud/ocp": "^30.0.2",
|
||||||
"roave/security-advisories": "dev-latest",
|
"roave/security-advisories": "dev-latest",
|
||||||
"nextcloud/coding-standard": "^1.3.2",
|
"nextcloud/coding-standard": "^1.3.2",
|
||||||
|
"nextcloud/rector": "^0.2.1",
|
||||||
"rector/rector": "^1.2.10",
|
"rector/rector": "^1.2.10",
|
||||||
"vimeo/psalm": "^5.26.1"
|
"vimeo/psalm": "^5.26.1"
|
||||||
},
|
},
|
||||||
|
@ -2,13 +2,18 @@
|
|||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
use Nextcloud\Rector\Set\NextcloudSets;
|
||||||
use Rector\Config\RectorConfig;
|
use Rector\Config\RectorConfig;
|
||||||
|
|
||||||
return RectorConfig::configure()
|
return RectorConfig::configure()
|
||||||
->withPaths([
|
->withPaths([
|
||||||
|
__DIR__.'/appinfo',
|
||||||
__DIR__.'/lib',
|
__DIR__.'/lib',
|
||||||
])
|
])
|
||||||
->withPhpSets(php80: true)
|
->withPhpSets(php81: true)
|
||||||
|
->withSets([
|
||||||
|
NextcloudSets::NEXTCLOUD_27,
|
||||||
|
])
|
||||||
->withPreparedSets(
|
->withPreparedSets(
|
||||||
deadCode: true,
|
deadCode: true,
|
||||||
codeQuality: true,
|
codeQuality: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user