From 9bb2b3963c536faa2070c536fa0cc12548a5a801 Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Thu, 7 Jan 2021 08:48:00 +0100 Subject: [PATCH] Remove rector after auto code migration Relates: #8092 --- composer.json | 3 --- rector.php | 60 --------------------------------------------------- 2 files changed, 63 deletions(-) delete mode 100644 rector.php diff --git a/composer.json b/composer.json index ef21bb7..555803a 100644 --- a/composer.json +++ b/composer.json @@ -27,8 +27,5 @@ "typo3/cms": { "extension-key": "events" } - }, - "require-dev": { - "ssch/typo3-rector": "^0.8.0" } } diff --git a/rector.php b/rector.php deleted file mode 100644 index c29079c..0000000 --- a/rector.php +++ /dev/null @@ -1,60 +0,0 @@ -parameters(); - - // Define what rule sets will be applied - $parameters->set(Option::SETS, [ - Typo3SetList::TYPO3_104, - ]); - - // FQN classes are not imported by default. If you don't do it manually after every Rector run, enable it by: - $parameters->set(Typo3Option::AUTO_IMPORT_NAMES, true); - - // this will not import root namespace classes, like \DateTime or \Exception - $parameters->set(Option::IMPORT_SHORT_CLASSES, false); - - // this will not import classes used in PHP DocBlocks, like in /** @var \Some\Class */ - $parameters->set(Option::IMPORT_DOC_BLOCKS, false); - - // Define your target version which you want to support - $parameters->set(Option::PHP_VERSION_FEATURES, PhpVersion::PHP_73); - - // If you would like to see the changelog url when a rector is applied - $parameters->set(Typo3Option::OUTPUT_CHANGELOG, true); - - // If you set option Typo3Option::AUTO_IMPORT_NAMES to true, you should consider excluding some TYPO3 files. - $parameters->set(Option::SKIP, [ - NameImportingPostRector::class => [ - 'ClassAliasMap.php', - 'class.ext_update.php', - 'ext_localconf.php', - 'ext_emconf.php', - 'ext_tables.php', - __DIR__ . '/**/TCA/*', - ], - ]); - - // If you have trouble that rector cannot run because some TYPO3 constants are not defined add an additional constants file - // Have a look at https://github.com/sabbelasichon/typo3-rector/blob/master/typo3.constants.php - // $parameters->set(Option::AUTOLOAD_PATHS, [ - // __DIR__ . '/typo3.constants.php' - // ]); - - // get services (needed for register a single rule) - // $services = $containerConfigurator->services(); - - // register a single rule - // $services->set(InjectAnnotationRector::class); -};