From a0d577e89f3e3f93e1e4a4beb5e17ceb2842971b Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Wed, 26 Apr 2023 17:20:38 +0200 Subject: [PATCH] Remove leftovers of rector --- .gitattributes | 1 - Documentation/Changelog/2.5.0.rst | 3 ++ composer.json | 1 - rector.php | 64 ------------------------------- 4 files changed, 3 insertions(+), 66 deletions(-) delete mode 100644 rector.php diff --git a/.gitattributes b/.gitattributes index f4d6694..0808308 100644 --- a/.gitattributes +++ b/.gitattributes @@ -10,4 +10,3 @@ phpcs.xml.dist export-ignore phpstan-baseline.neon export-ignore phpstan.neon export-ignore phpunit.xml.dist export-ignore -rector.php export-ignore diff --git a/Documentation/Changelog/2.5.0.rst b/Documentation/Changelog/2.5.0.rst index 4ed3873..d79c92f 100644 --- a/Documentation/Changelog/2.5.0.rst +++ b/Documentation/Changelog/2.5.0.rst @@ -27,6 +27,9 @@ Tasks Ensure packages are sorted. Ensure no composer.lock is created. +* Remove leftovers of rector + We don't need to carry those files if we don't use them right now. + Deprecation ----------- diff --git a/composer.json b/composer.json index 916737c..b2cb10c 100644 --- a/composer.json +++ b/composer.json @@ -45,7 +45,6 @@ "phpstan/extension-installer": "^1.1", "phpstan/phpstan": "^1.8.7", "phpunit/phpunit": "^9.0", - "ssch/typo3-rector": "^1.0", "symplify/easy-coding-standard": "^11.1", "typo3/testing-framework": "^7.0" }, diff --git a/rector.php b/rector.php deleted file mode 100644 index e9af139..0000000 --- a/rector.php +++ /dev/null @@ -1,64 +0,0 @@ -parameters(); - - $rectorConfig->sets([ - Typo3LevelSetList::UP_TO_TYPO3_11, - ]); - - $rectorConfig->paths([ - __DIR__ . '/Classes', - __DIR__ . '/Tests', - __DIR__ . '/Configuration', - __DIR__ . '/ext_*.php', - ]); - - // In order to have a better analysis from phpstan we teach it here some more things - $rectorConfig->phpstanConfig(Typo3Option::PHPSTAN_FOR_RECTOR_PATH); - - // FQN classes are not imported by default. If you don't do it manually after every Rector run, enable it by: - $rectorConfig->importNames(); - - // Disable parallel otherwise non php file processing is not working i.e. typoscript - $rectorConfig->disableParallel(); - - // this will not import root namespace classes, like \DateTime or \Exception - $rectorConfig->importShortClasses(true); - - // Define your target version which you want to support - $rectorConfig->phpVersion(PhpVersion::PHP_74); - - $rectorConfig->skip([ - __DIR__ . '/.github/*', - NameImportingPostRector::class => [ - 'ext_localconf.php', - 'ext_tables.php', - 'ClassAliasMap.php', - __DIR__ . '/**/Configuration/*.php', - __DIR__ . '/**/Configuration/**/*.php', - ], - ]); - - $rectorConfig->rule(StringClassNameToClassConstantRector::class); - - // Add some general TYPO3 rules - $rectorConfig->rule(ConvertImplicitVariablesToExplicitGlobalsRector::class); - $rectorConfig->ruleWithConfiguration(ExtEmConfRector::class, [ - ExtEmConfRector::ADDITIONAL_VALUES_TO_BE_REMOVED => [], - ]); - - $rectorConfig->rule(FileIncludeToImportStatementTypoScriptRector::class); -};