forked from TYPO3/typo3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rector.yml
28 lines (28 loc) · 1.32 KB
/
rector.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
parameters:
php_version_features: '7.2'
auto_import_names: 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'
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'
- 'php54'
- 'php55'
- 'php56'
- 'php70'
- 'php71'