From 82dca3c1e23a92134b5265410fb79449d4b158c7 Mon Sep 17 00:00:00 2001 From: "o.pinke" Date: Tue, 25 Apr 2023 19:07:47 +0200 Subject: [PATCH] add rector.php --- cms/securimage | 1 - rector.php | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) delete mode 160000 cms/securimage create mode 100644 rector.php diff --git a/cms/securimage b/cms/securimage deleted file mode 160000 index ac4be7e..0000000 --- a/cms/securimage +++ /dev/null @@ -1 +0,0 @@ -Subproject commit ac4be7e5bcbdfd9a088eb784532765686e0f2b7e diff --git a/rector.php b/rector.php new file mode 100644 index 0000000..a100b77 --- /dev/null +++ b/rector.php @@ -0,0 +1,32 @@ +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 + ]); +};