Commit Graph

90 Commits

Author SHA1 Message Date
Abdul Malik Ikhsan
bb384013c3
[CodeQuality] CodeQuality config set list clean up (#606)
* [CodeQuality] CodeQuality config set list clean up

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

Co-authored-by: GitHub Action <action@github.com>
2021-08-06 22:01:54 +02:00
Tomas Votruba
b3480900f3
[CodingStyle] Remove YieldClassMethodToArrayClassMethodRector, rather PHPStorm job (#576)
Co-authored-by: GitHub Action <action@github.com>
2021-08-02 17:39:36 +00:00
Abdul Malik Ikhsan
4d816080ee
[Config] Set config/, utils/ to rector config paths (#571)
Co-authored-by: GitHub Action <action@github.com>
2021-08-02 11:33:54 +02:00
Abdul Malik Ikhsan
44a00682aa
[Config] Add scoper.php to rector config path (#569)
* [Config] Add scoper.php to rector config path

* add ot rector.yaml

* change directories to paths naming

* fix

* [ci-review] Rector Rectify

Co-authored-by: GitHub Action <action@github.com>
2021-08-01 18:45:50 +02:00
Tomas Votruba
89ef54d16c
fix cs (#517) 2021-07-26 16:16:15 +00:00
Abdul Malik Ikhsan
eb91c61b95
[Config] Clean up rector.php config (#514) 2021-07-26 08:54:25 +00:00
Tomas Votruba
923bb72983
[Naming] Remove MakeBoolPropertyRespectIsHasWasMethodNamingRector, not reliable and rather PHPStan scope (#511) 2021-07-25 16:47:01 +00:00
Abdul Malik Ikhsan
ba990a2ec7
[Php74] Skip cast (string) on ReflectionType on ChangeReflectionTypeToStringToGetNameRector (#510) 2021-07-25 16:25:08 +02:00
Abdul Malik Ikhsan
cefa0d516b
[Config] Clean up rector.php skip option config (#509) 2021-07-25 13:37:44 +00:00
Tomas Votruba
bc9d2d48d5
[DX] Add MissedRectorDueVersionChecker (#465) 2021-07-21 11:26:10 +02:00
Tomas Votruba
904a5a7a1c
Make use of ClassMethodReturnVendorLockResolver (#377)
Co-authored-by: GitHub Action <action@github.com>
2021-07-04 23:04:09 +02:00
Tomas Votruba
5282793145
Add enums (#326)
Co-authored-by: GitHub Action <action@github.com>
2021-06-28 23:07:40 +02:00
Tomas Votruba
e3727aad81
[DeadCode] Make private property removal dependent on local property fetches (#311) 2021-06-27 16:08:24 +00:00
Tomas Votruba
65eeb1cd03 revet config 2021-06-26 16:44:27 +02:00
Tomas Votruba
99abcba050
ping ci (#302) 2021-06-26 14:39:50 +00:00
Tomas Votruba
697c20ec33
Enable changed files cache by default (#270) 2021-06-22 18:06:13 +02:00
Abdul Malik Ikhsan
9987001099
[Config] Clean up comment in rector.php config (#247) 2021-06-19 00:55:35 +00:00
Abdul Malik Ikhsan
24384c10ed
[Php 8] Enable RenamePropertyToMatchTypeRector (#168)
Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>
2021-06-18 19:18:23 +00:00
Abdul Malik Ikhsan
dce60231f7
[TypeDeclaration][Php 8] Enable ReturnTypeDeclarationRector (#184)
Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>
2021-06-18 17:19:36 +00:00
Abdul Malik Ikhsan
3f039f15e8
[SetList] Add import SetList::PHP_74 in rector.php (#199)
Co-authored-by: GitHub Action <action@github.com>
2021-06-11 01:20:15 +02:00
Abdul Malik Ikhsan
a698905660
[Php 8] Enable ClassOnObjectRector (#193)
Co-authored-by: GitHub Action <action@github.com>
2021-06-10 13:30:14 +02:00
Abdul Malik Ikhsan
db1e4161af
[TypeDeclaration][Php 8] Enable ParamTypeDeclarationRector (#186)
Co-authored-by: GitHub Action <action@github.com>
2021-06-09 14:45:12 +02:00
Abdul Malik Ikhsan
b64ca4e43f
[Php 8] Enable UnionTypesRector (#178)
Co-authored-by: GitHub Action <action@github.com>
2021-06-09 00:29:33 +02:00
Abdul Malik Ikhsan
bca0356f43
[TypeDeclaration][Php8] Enable ReturnTypeFromStrictTypedCallRector (#183) 2021-06-09 00:27:07 +02:00
Abdul Malik Ikhsan
ca8f75fae1
[Core] Add ExternalFullyQualifiedAnalyzer to check external FullyQualified extends/interface/traits (#164)
Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>
2021-06-08 14:48:30 +02:00
Tomas Votruba
be3abfb729
[PHP 8.0] Skip switch with default (#171) 2021-06-07 21:36:06 +00:00
Abdul Malik Ikhsan
017c6357b0
[PHP 8] Enable Property promotion (#167)
Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>
2021-06-07 16:29:36 +02:00
Abdul Malik Ikhsan
e5d6087a58
[Core] Fix ConfigurableCallValuesCollectingPhpFileLoader::import() to no void return type (#136)
* [Core] Fix ConfigurableCallValuesCollectingPhpFileLoader::import() to no void return type

* add failing fixture

* fix-a

* phpstan

* cs

* Trigger CI

* cache?

* cache?

* check null returnType

* tempory skip ConfigurableCallValuesCollectingPhpFileLoader as seems always loaded early
2021-06-01 16:44:10 +00:00
Tomas Votruba
b90952fdeb
Let Rector upgrade itself to PHP 8 🤖😇 (#123) 2021-05-30 00:00:30 +02:00
Tomas Votruba
ee070861c3
[Rector] use property promotion and arrow functions (#66)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-05-17 23:30:26 +00:00
TomasVotruba
037cfd435d fix typo in option name that lead to missed config loader 2021-05-15 12:07:38 +01:00
Abdul Malik Ikhsan
15be29817e
[Config] update duplicate Skip fixture config (#28)
* [Config] Remove duplicate Skip fixture config

* uupdate to */Fixture*/*
2021-05-14 16:36:24 +01:00
Tomas Votruba
b3b001a445
[PHP 7.4] Add more typed properties (#23)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-05-12 12:16:44 +02:00
Tomas Votruba
c62899d062
[PHP 7.4] Use typed properties in tests (#20) 2021-05-11 19:27:47 +02:00
Tomas Votruba
0684911cdf
[PHP 8.0] Promoted property fixes (#8)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-05-11 12:35:03 +02:00
Tomas Votruba
f451b0b8e1
[PHP 8.0] Bump to promoted properties (#4) 2021-05-11 01:33:01 +02:00
Tomas Votruba
d225be28d8
[scoped on PHP 7.0] bin/rector run with extracted phpstan (#6371) 2021-05-06 23:43:45 +02:00
Tomas Votruba
ac82ae6a63
Move from SETS parameter to explicit import() (#6375) 2021-05-06 20:06:31 +00:00
Tomas Votruba
38248d08f4
Return array of nodes directly from refactor() if possible (#6366)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-05-06 10:23:37 +02:00
Tomas Votruba
b0dc20a462
make ComposerFileProcessor run on non-root paths of composer.json (#6111) 2021-04-12 20:47:56 +00:00
Tomas Votruba
b2412ad62a
Refactor doctrine/annotation from dynamic to own static-reflection parser (#5974)
* remove doctrine/annotations

* Refactor doctrine/annotation parser to static reflection with phpdoc-parser

* remove doctirne-annotation-parser-syncer

* remove annotation stubs

* use nodes

* almost there

* [ci-review] Rector Rectify

* skip temporary

* phpstan: remove fixed messages

Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-04 11:01:11 +02:00
Tomas Votruba
025e6ed571
[PhpDocParser] Make use of native attributes (#5841)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-03-19 14:33:58 +00:00
Tomas Votruba
a389839c5c
[CI] Downgrade Rector to PHP 7.1 + prefix it (#5880)
* [downgrade] simplify to 2 configs

* rename downgrade_packages.sh to downgrade_rector_to_php71.sh

* add test case stub

* [CI] add linter for php code

* [CI] update tagged workflow

* update for covariance

* [ci-review] Rector Rectify

Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-03-18 02:48:44 +01: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
TomasVotruba
68bf6e8de8 remove dead-doc-block config 2021-03-15 21:09:43 +01:00
TomasVotruba
c27b9e8338 drop symfony-autowire set, used just once internally 2021-03-15 21:04:20 +01:00
Tomas Votruba
721f619a1d
Post moving cleanup (#5827) 2021-03-12 23:52:38 +00: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