Tomas Votruba
32272a97a1
[PHPStan] Added PathsAreNotTooLongRule phpstan rule ( #4998 )
...
* Added PathsAreNotTooLongRule phpstan rule
* static fixes
Co-authored-by: Markus Staab <m.staab@complex-it.de>
2020-12-26 13:35:23 +00:00
Abdul Malik Ikhsan
ec5daad132
[Util] Add StaticInstanceOf ( #4979 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-25 12:53:26 +01:00
Tomas Votruba
5a47e36b72
Add Visibility consts ( #4981 )
2020-12-24 23:01:30 +01:00
Tomas Votruba
aa35633c66
use getService() API call over static ( #4970 )
2020-12-23 21:40:46 +01:00
Abdul Malik Ikhsan
8bccfd9bcf
[BetterStandardPrinter] Remove unneded cleanUpDuplicateContent() ( #4933 )
2020-12-21 11:57:39 +01:00
Abdul Malik Ikhsan
bf4cd08947
[Utils] Run validate-fixture-namespace and validate-fixture-classname for /tests/ directory ( #4901 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-15 19:51:03 +01:00
Tomas Votruba
d131d804d9
Bump min PHP version to 7.3 ( #4838 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-09 23:25:53 +01:00
Abdul Malik Ikhsan
4087029cb9
[BetterStandardPrinter] Fixes #4691 Donot convert string literal comment ( #4727 )
...
* [BetterStandardPrinter] Fixes #4691 Donot change convert string literal comment
* handle spacing
* [ci-review] Rector Rectify
* fix conflict
* [ci-review] Rector Rectify
* try --debug
* Trigger notification
* phpstan
* phpstan
Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-30 09:51:11 +00:00
Tomas Votruba
0eb6e29176
drop MinimalVersionChecker, is checked by composer itself ( #4715 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-27 17:32:38 +01:00
Tomas Votruba
9150af563a
make use symplify/php-doc-parser ( #4703 )
...
* make use Symplify/PhpDocParser
* report line
* remove monorepo-builder, not needed anymore
* use php action 2
* fixup! use php action 2
2020-11-27 12:23:25 +00:00
Tomas Votruba
080e5cbe00
use symplify/skipper ( #4689 )
2020-11-26 23:09:21 +01:00
Tomas Votruba
054baf96d1
[DX] Remove buggy --only option to complete --set removal; use PHP config with reliable autocomplete ( #4701 )
2020-11-26 17:04:11 +00:00
Tomas Votruba
250e851123
skip spaced or html tagged ( #4681 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-24 01:38:05 +01:00
Tomas Votruba
da6d703687
Improve Blade class renames ( #4676 )
...
* [Console] Use single point of command naming
* use blade in process command
* filter out blade templates from PHP files
* make test process blade as non php file
* add failing test
* remove duplicated tests
* rename php to php.inc suffix to make it skip to CI tools
* [ci-review] Rector Rectify
Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-23 19:16:48 +00:00
Abdul Malik Ikhsan
715b616ada
[Solid] use Variable node type for for MoveVariableDeclarationNearReferenceRector ( #4670 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-23 11:40:29 +01:00
Abdul Malik Ikhsan
36a5c2b01b
[BetterStandardPrinter] Fixes #4652 Skip @return explicit format ( #4666 )
2020-11-20 19:53:41 +01:00
Abdul Malik Ikhsan
3ef4cefa64
[BetterStandardPrinter] Fixes #3388 Skip Localization Annotation route ( #4646 )
2020-11-18 17:09:22 +01:00
Tomas Votruba
661b2f0a65
[Symplify 9] Follow up + phpstan rules tidying ( #4625 )
...
* improve static
* improve phpstan rules
* [PHPStanExtensions] Drop CheckCodeSampleBeforeAfterAlwaysDifferentRule, already part of domain in CodeSample
* cleanup
2020-11-16 23:32:24 +00:00
Tomas Votruba
a7705ed0a5
[Symplify 9] First update + switch to RuleDocGenerator ( #4616 )
...
* [composer] bump to Symplify 9
* [Symplify 9] Update phpstan rules
* bump to Symplify 9 BETA2
* update AbstractKernel from Tests to Testing namespace
* decoupling removing node trait
* remove fluent calls
* removing variadic
* [CodingStyle] Improve AnnotateThrowablesRector
* bump deps
* Make use of RuleDocGenerator
* first short
* [DocumentationGenerator] Drop deprecated package, RuleSetGenerator now handles it
* import namespace
* update docs
2020-11-16 17:50:38 +00:00
Abdul Malik Ikhsan
7b0cfd56da
[BetterStandardPrinter] Fixes #4620 Do not change valid Annotation Route Option ( #4622 )
2020-11-16 13:04:59 +01:00
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