Skip to content

Commit 4d475c3

Browse files
committed
[Rector] Added rector configuration
1 parent 49b7e72 commit 4d475c3

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"require-dev": {
1616
"ibexa/code-style": "~2.0.0",
1717
"ibexa/doctrine-schema": "~5.0.x-dev",
18+
"ibexa/rector": "~5.0.x-dev",
1819
"matthiasnoback/symfony-dependency-injection-test": "^4.1",
1920
"phpunit/phpunit": "^9.6"
2021
},

rector.php

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
3+
/**
4+
* @copyright Copyright (C) Ibexa AS. All rights reserved.
5+
* @license For full copyright and license information view LICENSE file distributed with this source code.
6+
*/
7+
declare(strict_types=1);
8+
9+
use Ibexa\Contracts\Rector\Sets\IbexaSetList;
10+
use Rector\Config\RectorConfig;
11+
use Rector\Symfony\Set\SymfonySetList;
12+
13+
return RectorConfig::configure()
14+
->withPaths([
15+
__DIR__ . '/src',
16+
__DIR__ . '/tests',
17+
])
18+
->withSets([
19+
IbexaSetList::IBEXA_50->value,
20+
SymfonySetList::SYMFONY_60,
21+
SymfonySetList::SYMFONY_61,
22+
SymfonySetList::SYMFONY_62,
23+
SymfonySetList::SYMFONY_63,
24+
SymfonySetList::SYMFONY_64,
25+
]);

0 commit comments

Comments
 (0)