Skip to content
Snippets Groups Projects
rector.yml 1.52 KiB
Newer Older
parameters:
  php_version_features: '7.2'
  auto_import_names: true
  import_short_classes: false
  import_doc_blocks: false
  paths:
    - 'typo3/sysext/*/Classes/'
    - 'typo3/sysext/*/Tests/Unit/'
    - 'typo3/sysext/*/Tests/Functional/'
  exclude_paths:
    - 'typo3/sysext/*/Configuration/'
    - 'typo3/sysext/core/Tests/Unit/Configuration/TypoScript/ConditionMatching/Fixtures/ConditionMatcherUserFuncs.php'
    - 'typo3/sysext/*/Tests/Unit/Acceptance'
    - 'typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/Fixtures/'
    - 'ClassAliasMap.php'
    - 'class.ext_update.php'
    - 'ext_localconf.php'
    - 'ext_emconf.php'
    - 'ext_tables.php'
    - 'ServiceProvider.php' # avoid auto_import_names because of relative class name usage
  exclude_rectors:
    - Rector\Php55\Rector\String_\StringClassNameToClassConstantRector
    - Rector\Php70\Rector\List_\ListSwapArrayOrderRector
    - Rector\Php71\Rector\Assign\AssignArrayToStringRector # this rector does not detect class properties right and changes them
    - Rector\Php71\Rector\BinaryOp\BinaryOpBetweenNumberAndStringRector # this rector is currently broken, bug report: https://github.com/rectorphp/rector/issues/2454
    - Rector\Php71\Rector\FuncCall\CountOnNullRector # can be enabled again if min php version is and actives sets include php73 as that version introduced "is_countable"
    - Rector\Php71\Rector\FuncCall\RemoveExtraParametersRector # this breaks tests (prophecies)
  sets:
    - 'php53'