1106 Commits

Author SHA1 Message Date
Abdul Malik Ikhsan
7203ff0770
[DX] Fixes #4588 Enable PreferThisOrSelfMethodCallRector in rector-ci.php (#4597)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-13 12:15:33 +01:00
Abdul Malik Ikhsan
c88811f816
[BetterStandardPrinter] Fixes #4476 @ORM Constraint should not be changed (#4585) 2020-11-12 15:47:24 +01:00
Abdul Malik Ikhsan
31397c1cf8
[BetterStandardPrinter] Fixes #4581 @Orm\Column should not be changed (#4584)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-12 11:25:25 +01:00
Abdul Malik Ikhsan
0e5386c5d8
[BetterStandardPrinter] Fixes #3673 Doctrine Annotation comment should not be changed (#4577) 2020-11-11 16:14:31 +01:00
Abdul Malik Ikhsan
11fbc4c1c9
[BetterStandardPrinter] Fixes #4274 #4573 Annotation callback and Route values should not be changed (#4576)
* [BetterStandardPrinter] Fixes #4274 Annotation callback value should not changed to const

* backtrack fix

* update regex link

* namespace fix

* [ci-review] Apply coding standards

* [ci-review] Rector Rectify

* php 7.2 syntax

* Fixes #4573

* regex fix

* rework, need to one by one step

* handle route annotation

* phpstan

* [ci-review] Apply coding standards

* move content patch functionalities to new service : ContentPatcher

* [ci-review] Rector Rectify

* clean up phpstan

Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-11 13:06:46 +00:00
Abdul Malik Ikhsan
600334eafa
Fixes #4499 Code duplication on interface_exists and trait_exists inside if condition (#4553)
* debug content forat interface_exists

* add link to the post about format preserving

* Fixes #4499 Closes #4548

* [ci-review] Rector Rectify

* allow 0 space

* ensure matches[0] = matches[1] . matches[1]

* ensure count matches is 2

* phpstan

* [ci-review] Rector Rectify

* add test

* phpstan

* handle no {}

* clean up

* [ci-review] Rector Rectify

* fixture fix

* phpstan

* add @see https://github.com/rectorphp/rector/issues/4499 reference issue

Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>
Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-04 22:32:49 +01:00
Abdul Malik Ikhsan
5b1ae0b613
add empty file test case (#4549)
* add empty file test case

* [ci-review] Rector Rectify

Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>
Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-04 03:50:35 +01:00
Tomas Votruba
0513315056
Change file system approach of MultipleClassFileToPsr4ClassesRector to file without namespace node (#4522)
* Change file system approach of MultipleClassFileToPsr4ClassesRector to file without namespace node

* update DecoupleClassMethodToOwnClassRector

* [ci] add rebase jobp

* disable fail fast for unit tests

* misc
2020-10-31 12:59:40 +00:00
Tomas Votruba
91a354c080
[NetteCodeQuality] Fix ChangeFormArrayAccessToAnnotatedControlVariableRector for in-closure (#4506)
* [NetteCodeQuality] Fix ChangeFormArrayAccessToAnnotatedControlVariableRector for in-closure

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

* fix name

* fix unknown mixed type on fluent

* [ci-review] Rector Rectify

Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-29 21:25:35 +00:00
Tomas Votruba
a1e50263d2
[cs] improve configured rules types (#4491)
* [cs] improve configured rules types

* [ci] update env variable
2020-10-27 14:00:39 +00:00
Tomas Votruba
a9f737bcaf
decouple CommentRemover (#4412) 2020-10-15 11:50:15 +02:00
Tomas Votruba
8af70b5ac0
[Defluent] Refactoring to multiple rules (#4400)
* [Defluent] Refactoring to multiple rules

* [Defluent] Decouple defluent-only set, it deserved to have own domain

* cleanup

* [rector] cleanup

* [cs] cleanup

* fixup! cleanup

* static fixes

Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-14 04:24:29 +00:00
Abdul Malik Ikhsan
ae816c2c3d
Fixes #4337 : Make Option::SKIP works again with ParameterProvider (#4339) 2020-10-01 18:55:10 +02:00
Tomas Votruba
52ccfc0527
[DX] move Nette FileSytem to SmartFileSystem DI (#4262)
* move Nette FileSytem to SmartFileSystem DI

* move Symfony FileSytem to SmartFileSystem

* [ci] run rector diretly, without composer wrap
2020-09-19 09:27:29 +00:00
Tomas Votruba
042f08f71b
Drop YAML config support (#4081)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-30 23:29:39 +02:00
Tom Pavelec
36b24b2bfc
fix: swapped naming of camel and pascal cases (#4047) 2020-08-28 18:07:15 +02:00
dobryy
2e7bdca4e2
[DX] Rename namespaces respect node type (#3973) 2020-08-18 17:57:30 +02:00
Tomas Votruba
ec28719c6c
make use of NodeConnectingVisitor + improve generate Rector docs (#3925) 2020-08-07 11:30:05 +02:00
TomasVotruba
7c01151ec6 Move Core Rector rules to Generic namespace, to prevent mixup with Core code 2020-07-29 02:05:52 +02:00
TomasVotruba
743e9c75a3 [Nette 3.0] Add container builder extends to helpers 2020-07-29 01:21:59 +02:00
TomasVotruba
2eddb274c2 use standard __ for vars 2020-07-28 23:54:13 +02:00
TomasVotruba
cdd3935ef6 add RecipeOption to prevent typos; first attempt to use constant-named parameters 2020-07-28 17:46:48 +02:00
TomasVotruba
99db894192 restore types 2020-07-27 10:44:51 +02:00
TomasVotruba
7fbdab7a8f fix removing of doc 2020-07-26 19:29:50 +02:00
TomasVotruba
0188d802d2 use SmartFileSystem over Nette FileSystem 2020-07-24 14:39:10 +02:00
TomasVotruba
3a9375007e decouple Set package 2020-07-21 01:39:24 +02:00
TomasVotruba
6a4792abf4 apply new naming rule 2020-07-19 23:36:10 +02:00
TomasVotruba
bda3e5aa28 load rector.php config 2020-07-18 21:15:27 +02:00
TomasVotruba
bc0d9b3675 from YAML to PHP sets 2020-07-18 19:56:27 +02:00
TomasVotruba
231ae7dc77 make ReturnArrayClassMethodToYieldRector work with multi return 2020-07-09 01:23:10 +02:00
dobryy
78e518c105 check minimal php version 2020-07-08 20:36:27 +02:00
TomasVotruba
a0fde28793 remove fixes issue test case 2020-07-02 15:22:45 +02:00
TomasVotruba
3da25665ba remove covered issue 2020-07-02 15:21:23 +02:00
TomasVotruba
f1d54301a3 remove unused RectorContainerFactoryTest, also createFromSet() method 2020-07-02 15:19:07 +02:00
TomasVotruba
aed222aecc remove confirmed test case 2020-07-02 15:09:47 +02:00
TomasVotruba
9a75aaa4b9 rename issue 2863 to CommentPreserving 2020-07-02 13:55:39 +02:00
TomasVotruba
574de08dfa remove issue-tests, already covered in specific rule tests 2020-07-02 13:40:51 +02:00
TomasVotruba
547e15099d use explicit xBuilder classes to prevent typos and PHPStan and PHPStorm confussion 2020-06-30 01:34:19 +02:00
TomasVotruba
477308c030 [Naming] Add RenameVariableToMatchNewTypeRector 2020-06-29 23:09:51 +02:00
TomasVotruba
828d8cf67f prevent remove false template 2020-06-29 13:50:36 +02:00
TomasVotruba
e060d49a30 rename file to fileInfo to reflect the type 2020-06-28 23:36:32 +02:00
TomasVotruba
bba3327993 merge template annotation rector version to 5 2020-06-28 23:26:45 +02:00
TomasVotruba
f1ee5065bc move ReturnThisRemoveRector to MagicDisclosure 2020-06-28 20:08:08 +02:00
TomasVotruba
ec99343c38 move MagicDisclosure rules to own package 2020-06-28 19:59:06 +02:00
TomasVotruba
4755ba8c88 move FluentInterfaceClass to MagicDisclosure package 2020-06-28 19:41:54 +02:00
TomasVotruba
fae704b333 rename FluentReplaceRector to DefluentMethodCallRector 2020-06-28 19:21:28 +02:00
TomasVotruba
e9fcf8481d skip parent ctor in AnnotatedPropertyInjectToConstructorInjectionRector 2020-06-26 01:50:05 +02:00
TomasVotruba
93962b9a51 skip property without doc 2020-06-26 00:58:39 +02:00
TomasVotruba
fce9654044 skip AnnotatedPropertyInjectToConstructorInjectionRector in case of child __construct 2020-06-26 00:52:53 +02:00
TomasVotruba
7f49658112 change test(string ) to test(SmartFileInfo ) in tests 2020-06-25 20:02:36 +02:00