1123 Commits

Author SHA1 Message Date
TomasVotruba
3b3b96d064 skip config factory 2021-03-18 12:42:04 +01:00
Tomas Votruba
0f3d07f1f8
[DeadCode] Removing method/property entity Doctrine remover, too vague (#5892) 2021-03-18 02:44:36 +01:00
Tomas Votruba
6af2805a1c
Move symfony/cache to simpler nette/caching (#5889)
* composer: remove symfony/cache

* [Caching] Add nette/cache, lighter

* make sure cache directory exists
2021-03-18 02:11:54 +01:00
Tomas Votruba
575131d0e2
[Compiler] Add downgrade-paths command (#5887) 2021-03-18 00:42:12 +01:00
Tomas Votruba
69e66cbf1f
Replace StaticRectorStrings with Stringy class, remove CamelCaseFunctionNamingToUnderscoreRector to avoid naming rules (#5882) 2021-03-17 19:59:18 +00:00
Tomas Votruba
2be6607854
[Reporting] Move missing rector services to single class (#5881) 2021-03-17 19:59:47 +01:00
Tomas Votruba
0ac0e54b02
[Naming] Removing underscore rules, rather handle with coding standards (#5868) 2021-03-15 23:24:43 +00:00
Tomas Votruba
683f8319a8
[CI] simplify php linter (#5867)
* [CI] simplify php linter

* [CI] merge code analysis to one

* [docs] remove nodes overview, already in external repository

* remove unused ci job

* [CI] check annotation parser + sync

* [DeadCode] Remove RemoveEmptyAbstractClassRector, not reliable with static-reflection, opionated

* [CI] remove set validation, PHPStan handles this better with PHP

* remove dead-code-strict [skip ci]
2021-03-15 23:44:28 +01:00
TomasVotruba
c27b9e8338 drop symfony-autowire set, used just once internally 2021-03-15 21:04:20 +01:00
TomasVotruba
bcfc808852 merge dead-doc-block to dead-code set 2021-03-15 21:03:11 +01:00
TomasVotruba
5896991385 decouple services-packages.php config 2021-03-15 21:01:47 +01:00
Tomas Votruba
d897902ccf
[Downgrade] Keep better phpdoc type (#5862) 2021-03-15 18:58:04 +01:00
Tomas Votruba
c1c6c9aaf2
[downgrade] remove extra configs, unite parameters (#5861) 2021-03-15 13:19:57 +00:00
TomasVotruba
0670f8ee36 merge doctrine-services to doctrine-code-quality 2021-03-14 22:05:32 +01:00
TomasVotruba
3b7e88b3ba drop eab config, just 2 poor rules 2021-03-14 22:04:43 +01:00
Tomas Votruba
d7cb28e37a
[Symfony 5.1] Add RouteCollectionBuilderToRoutingConfiguratorRector (#5835)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-03-13 16:11:49 +00:00
Tomas Votruba
9beb1da3c0
Move fixture requirement from command line to a test case (#5832) 2021-03-13 15:07:31 +01:00
Tomas Votruba
0acc05cc6e
remove runnable interface, to lower complexity (#5829) 2021-03-13 01:23:22 +00:00
Tomas Votruba
721f619a1d
Post moving cleanup (#5827) 2021-03-12 23:52:38 +00:00
Tomas Votruba
157c39aefc
[DX] move src/tests rules from micro-packages to single PSR-4 structure (#5826) 2021-03-12 23:20:25 +01:00
Tomas Votruba
c791f5ed60
[RectorGenerator] Decouple to external package (#5825) 2021-03-12 20:13:27 +01:00
Tomas Votruba
67670e70ad
[DX] move packages from src/tests to single PSR-4 directory (#5824) 2021-03-12 01:21:29 +00:00
Abdul Malik Ikhsan
28e1e1f3f4
[PHP 7.3] Register existing ContinueToBreakInSwitchRector in PHP 5.2 set to PHP 7.3 config set (#5820)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-03-11 11:58:11 +01:00
Tomas Votruba
e09560c68f
use single type (#5811)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-03-09 15:22:49 +01:00
Tomas Votruba
896ca733dc
cherry-pick downgrade update (#5794) 2021-03-07 21:25:43 +00:00
Tomas Votruba
8d79b4fb9e
[TypeDeclaration] Improve param by caller type #4 (#5793)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-03-07 21:07:50 +00:00
Tomas Votruba
031deda881
[TypeDeclaration] Add AddParamTypeFromCallersRector (#5782) 2021-03-06 21:16:18 +00:00
Abdul Malik Ikhsan
d7592f59ec
[Naming] Register RenameForeachValueVariableToMatchExprVariableRector to naming config set (#5696)
* [Naming] Register RenameForeachValueVariableToMatchExprVariableRector to naming config set

* fix property fetch not from this

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

* fix

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

* fixture fix

* phpstan

* [ci-review] Rector Rectify

* phpstan

* extract to separate method for collect assigns by name

* adding InflectorSingularResolver service

* skip single prefix and length >= 40

* add failing fixture to skip plural camel case

* use regex to get camel cases

* implemented singularize camel cased

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

* phpstan

* handle singular verb news -> new

* [ci-review] Rector Rectify

* fixture fix

* handle has

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

* phpstan

* phpstan

* handle left side By

* [ci-review] Rector Rectify

* re-use resolve call

* [ci-review] Rector Rectify

* phpstan

* [ci-review] Rector Rectify

* final touch

* final touch

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

* use previous By in the middle

* update $childClassReflection->hasProperty($propertyName)

* [ci-review] Rector Rectify

* catchKeys

* regex fix

* fixture

* [ci-review] Rector Rectify

* try use check array

* Revert "try use check array"

This reverts commit adb9f767f20ea2544e5ccfc9cfe361ecc929912a.

* use files

Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-03-05 11:55:40 +01:00
Tomas Votruba
c1dab30664
[MockistaToMockery] Drop as mockista is completely dead package (#5758) 2021-03-03 18:40:45 +01:00
Tomas Votruba
05788745fd
[Downgrade] Remove excessive abstract class inheritance, use single service (#5717) 2021-03-01 12:10:50 +00:00
Abdul Malik Ikhsan
a9ca776ddc
[EarlyReturn] Register ReturnBinaryOrToEarlyReturnRector to early-return config set (#5679)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-25 10:19:43 +01:00
Tomas Votruba
e571128b85
[Transform] Move FunctionCallToConstantRector to FuncCallToConstFetchRector (#5642) 2021-02-21 09:40:54 +00:00
Tomas Votruba
9a376d98e5
[Arguments] New rule set from former generics (#5637)
* [Transform] Move SingleToManyMethodRector

* [Transform] Move WrapReturnRector here

* [DependencyInjectoin] Move AddMethodParentCallRecto here

* [Arguments] Create new package from old generics only around arguments

* composer docs uild
2021-02-21 00:21:19 +01:00
Tomas Votruba
13e33f0bff
[Generic] Decouple rules to tailored sets (#5635)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-20 23:48:31 +01:00
Tomas Votruba
362ebbea46
[TypeDeclaration] Add ReturnTypeFromReturnNewRector (#5624)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-19 12:01:23 +00:00
Tomas Votruba
1ea1f5852b
[DeadCode] Remove RemoveUnusedClassesRector and RemoveUselessJustForSakeInterfaceRector, too unreliable (#5618) 2021-02-19 01:13:43 +01:00
Tomas Votruba
9f5bc8fa16
use ->getNativeType() to get native types (#5601) 2021-02-18 21:34:07 +01:00
Abdul Malik Ikhsan
4416807562
[EarlyReturn] Register PreparedValueToEarlyReturnRector to early-return config set (#5606)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-18 17:01:55 +01:00
Abdul Malik Ikhsan
bcc6c5f326
[DeadCode] Register RemoveDeadLoopRector to dead-code config set (#5605) 2021-02-18 14:50:36 +01:00
Tomas Votruba
c609697f14
[TypeDeclarationStrict] Add AddMethodCallBasedStrictParamTypeRector (#5580) 2021-02-17 16:40:29 +01:00
Abdul Malik Ikhsan
8e915ebe9b
[DeadCode] Register RemoveEmptyAbstractClassRector to dead-code config set (#5583) 2021-02-16 21:16:21 +01:00
Tomas Votruba
651573a58f
[TypeDeclaration] Add ReturnTypeFromStrictTypedCallRector (#5573) 2021-02-16 16:12:37 +00:00
Tomas Votruba
9d8b88e359
[TypeDeclaration] Add ParamTypeFromStrictTypedPropertyRector, add TYPE_DECLARATION_STRICT set (#5559) 2021-02-15 16:38:30 +00:00
Tomas Votruba
de8fa30257
[cs] apply indent of call in configs (#5547) 2021-02-14 21:28:21 +00:00
Tomas Votruba
054de822ed
[DoctrineCodeQuality] Add tests (#5540)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-14 19:51:04 +00:00
Abdul Malik Ikhsan
206df09020
[EarlyReturn] Register ReturnAfterToEarlyOnBreakRector to early-return config set (#5542) 2021-02-14 14:40:31 +01:00
Tomas Votruba
d2948833a8
drop unused AddPropertyByParentRector (#5537) 2021-02-13 23:36:53 +00:00
Tomas Votruba
560b720b83
[DependencyInjectoin] Add ActionInjectionToConstructorInjectionRector (#5485) 2021-02-09 22:57:20 +00:00
Tomas Votruba
7a3f5a8c0a
remove unused RectorClassesProvider (#5482)
* remove unused RectorClassesProvider

* README: remove ci-checkstyle link, marginal topic, to avoid confusion for first readers
2021-02-09 22:43:04 +00:00
Abdul Malik Ikhsan
6a6ac8332b
[EarlyReturn] Rename ChangeAndIfContinueToMultiContinueRector to ChangeOrIfContinueToMultiContinueRector (#5483)
* [EarlyReturn] Register ChangeAndIfContinueToMultiContinueRector to early-return config set

* try with clone $if

* [EarlyReturn] Rename ChangeAndIfContinueToMultiContinueRector to ChangeOrIfContinueToMultiContinueRector

* re-register

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

* reduce complexity

* [ci-review] Rector Rectify

Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-09 22:52:57 +01:00