forked from subugoe/typo3-find
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rector.php
34 lines (29 loc) · 900 Bytes
/
rector.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Rector\Set\ValueObject\SetList;
use Ssch\TYPO3Rector\FileProcessor\TypoScript\Rector\v10\v0\ExtbasePersistenceTypoScriptRector;
use Ssch\TYPO3Rector\Set\Typo3SetList;
return static function (RectorConfig $rectorConfig): void {
$rectorConfig->paths([
__DIR__.'/Classes',
__DIR__.'/Tests',
__DIR__.'/Configuration',
__DIR__.'/Resources',
__DIR__.'/*.php',
]);
$rectorConfig->skip([
__DIR__.'/.Build/vendor',
__DIR__.'/var',
__DIR__.'/*.cache',
ExtbasePersistenceTypoScriptRector::class,
]);
// Define what rule sets will be applied
$rectorConfig->sets([
SetList::CODING_STYLE,
SetList::CODE_QUALITY,
SetList::PHP_74,
Typo3SetList::TYPO3_104,
Typo3SetList::TYPOSCRIPT_CONDITIONS_104,
]);
};