add rector.php

This commit is contained in:
o.pinke 2023-04-25 19:07:47 +02:00
parent 57db5e9fde
commit 82dca3c1e2
2 changed files with 32 additions and 1 deletions

@ -1 +0,0 @@
Subproject commit ac4be7e5bcbdfd9a088eb784532765686e0f2b7e

32
rector.php Normal file
View file

@ -0,0 +1,32 @@
<?php
declare(strict_types=1);
use Rector\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector;
use Rector\Config\RectorConfig;
use Rector\Core\ValueObject\PhpVersion;
use Rector\Set\ValueObject\LevelSetList;
return static function (RectorConfig $rectorConfig): void {
$rectorConfig->paths([
__DIR__ . '/cms/data/modules',
/* __DIR__ . '/conlib',
__DIR__ . '/conlite',
__DIR__ . '/data',
__DIR__ . '/dievino',
__DIR__ . '/pear',
__DIR__ . '/setup',*/
__DIR__.'/conlite/includes',
]);
$rectorConfig->phpVersion(PhpVersion::PHP_80);
// register a single rule
//$rectorConfig->rule(InlineConstructorDefaultToPropertyRector::class);
// define sets of rules
$rectorConfig->sets([
// SetList::DEAD_CODE,
LevelSetList::UP_TO_PHP_80
]);
};