Skip to content

Commit 83c0f18

Browse files
committed
feat: add rector
1 parent b3902c9 commit 83c0f18

3 files changed

Lines changed: 147 additions & 2 deletions

File tree

composer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"bamarni/composer-bin-plugin": "^1.8",
3737
"mikey179/vfsstream": "^1.6",
3838
"phpunit/phpunit": "^9.5",
39+
"rector/rector": "^0.18.5",
3940
"roave/security-advisories": "dev-latest"
4041
},
4142
"require": {
@@ -109,7 +110,8 @@
109110
"bin-links": false
110111
},
111112
"cleaner-ignore": {
112-
"phpunit/phpunit": true
113+
"phpunit/phpunit": true,
114+
"rector/rector": true
113115
},
114116
"google/apiclient-services": [
115117
"Drive"

composer.lock

Lines changed: 119 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rector.php

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use Rector\Config\RectorConfig;
6+
use Rector\Set\ValueObject\LevelSetList;
7+
8+
return static function (RectorConfig $rectorConfig): void {
9+
$rectorConfig->sets([LevelSetList::UP_TO_PHP_74]);
10+
11+
$rectorConfig->paths([
12+
__DIR__ . '/apps',
13+
__DIR__ . '/core',
14+
__DIR__ . '/lib',
15+
__DIR__ . '/ocm-provider',
16+
__DIR__ . '/ocs',
17+
__DIR__ . '/ocs-provider',
18+
__DIR__ . '/settings',
19+
__DIR__ . '/tests',
20+
]);
21+
$rectorConfig->skip([
22+
__DIR__ . '/*/templates/*',
23+
__DIR__ . '/lib/composer/*',
24+
]);
25+
};

0 commit comments

Comments
 (0)