mirror of
https://github.com/nextcloud/server.git
synced 2026-03-22 02:21:12 -04:00
chore(rector): Enable Nextcloud 25 set for the apps folder
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
6c1dd472f2
commit
007335dadf
1 changed files with 4 additions and 0 deletions
|
|
@ -7,6 +7,7 @@ declare(strict_types=1);
|
|||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
use Nextcloud\Rector\Set\NextcloudSets;
|
||||
use PhpParser\Node;
|
||||
use Rector\CodingStyle\Contract\ClassNameImport\ClassNameImportSkipVoterInterface;
|
||||
use Rector\Config\RectorConfig;
|
||||
|
|
@ -72,6 +73,9 @@ $config = RectorConfig::configure()
|
|||
->withConfiguredRule(ClassPropertyAssignToConstructorPromotionRector::class, [
|
||||
'inline_public' => true,
|
||||
'rename_property' => true,
|
||||
])
|
||||
->withSets([
|
||||
NextcloudSets::NEXTCLOUD_25,
|
||||
]);
|
||||
|
||||
$config->registerService(NextcloudNamespaceSkipVoter::class, tag:ClassNameImportSkipVoterInterface::class);
|
||||
|
|
|
|||
Loading…
Reference in a new issue