501 Commits

Author SHA1 Message Date
Markus Staab
f9de09ab3c
dont run jobs on forks, because gh-tokens are not available (#4813) 2020-12-06 18:08:19 +07:00
Markus Staab
e734d32e4c
dont run weekly jobs on forks, because gh-tokens are not available (#4808)
Try to fix a error which I get in GitHub Action every week
2020-12-06 11:47:46 +01:00
Tomas Votruba
f672eace0e
[DX] Add init-recipe command to create recipe config in root (#4789)
* [DX] Add init-recipe command to initlaize recipe

* update docs
2020-12-05 13:20:13 +00:00
Abdul Malik Ikhsan
1e667b454f
[CI] Add PHP 8.0 to Github actions tests (#4779) 2020-12-05 12:10:44 +01:00
Tomas Votruba
5201e949a1
[PHPStanExtensions] Add ForbiddenMethodCallOnTypeRule + move from docComment and Comments to PhpDocInfo (#4780)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-05 00:22:12 +01:00
Tomas Votruba
132062acf3
[DeadCode] Fix dead method in property promotion (#4749)
* [DeadCode] Fix dead method in property promotion

* bump workflows PHP version to 7.2, to respect symplify bump

* allow non-existing attributes in tests
2020-12-02 10:15:39 +00:00
Markus Staab
e5b411d9cd
Add issue labels to issue templates (#4719) 2020-11-28 19:05:57 +01:00
Tomas Votruba
377c734975
drop old compiler (#4716) 2020-11-27 17:54:14 +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
0963b8dca7
Drop --set forgotten leftover (#4700)
* Drop --set forgotten leftover

* remove package not split anymore
2020-11-26 16:55:33 +00:00
Tomas Votruba
0993088cda
[SymfonyPhpConfig] Use Symplify package instead + simplify set validation (#4694)
* [SymfonyPhpConfig] Use Symplify package instead

* [SymfonyPhpConfig] Drop forgotten custom-jobs Rectors

* [CI] simplify set validation

* from inline functions to Static class

* cleanup

* decouple rector.php to allow static analysis and coding standards
2020-11-26 16:44:27 +00:00
Tomas Votruba
0456cc088c
[Docs] Improve rule doc generator to generat rules_overview with categories (#4688)
* numbers

* update ECS config to Symplify 9

* regenerate rules with categorize

* [CI] disable automated rebase, as not working propperly

* update misc
2020-11-25 21:34:34 +00:00
Tomas Votruba
e8553cd647 [CI] Add monorepo validate [closes #4628] 2020-11-25 16:42:46 +00:00
Tomas Votruba
8e7c4bfc96 [CI] do not push to forks 2020-11-24 21:30:17 +00:00
Tomas Votruba
cb57430655
[Renaming] Add renaming support for blade.php templates in Laravel (#4672)
* [CI] fix monorepo split

* naming, add blade.php suffix

* [Renaming] Add class rename support for laravel blade templates

* skip test fixture
2020-11-23 11:35:42 +00:00
Tomas Votruba
7de92da46f [CI] disable code coverage broken for unknown reason 2020-11-20 12:07:36 +00:00
Tomas Votruba
870a0f3822
[Laravel 5.8] Add CallOnAppArrayAccessToStandaloneAssignRector, PropertyDeferToDeferrableProviderToRector, MakeTaggedPassedToParameterIterableTypeRector (#4637)
* [Laravel 5.8] Add remember method

* [Laravel] Add PropertyDeferToDeferrableProviderToRector

* [Laravel] Add CallOnAppArrayAccessToStandaloneAssignRector

* [Laravel] Add MakeTaggedPassedToParameterIterableTypeRector

* [CI] changelog weekly only

* [ci-review] Rector Rectify

Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-18 01:22:40 +00:00
Tomas Votruba
0c45b6f569 [CI] move ci-review to daily PRs 2020-11-15 15:14:49 +00:00
Tomas Votruba
e7f1963d67 [CI] do not build rector.phar, only scoped 2020-11-14 21:10:09 +00:00
Tomas Votruba
9d7fa63bf8 [CI] use monorepo-split action to split packages 2020-11-14 20:25:20 +00:00
Tomas Votruba
2a2c49d4ae
[PHPUnit] Add ConstructClassMethodToSetUpTestCaseRector (#4603)
* [CI] enable automated changelog regenerate

* [CI] drop generate docs, already part of PRs

* [PHPUnit] Add ConstructClassMethodToSetUpTestCaseRector

* make use of SetUpClassMethodFactory
2020-11-13 20:32:18 +00:00
Tomas Votruba
14396a0d38 typo 2020-11-12 21:40:13 +00:00
Tomas Votruba
4318df9c17
[Laravel] Add AddGuardToLoginEventRector (#4591)
* [Laravel] Add AddGuardToLoginEventRector

* [CI] decouple daily_pull_requests
2020-11-12 21:35:25 +00:00
Tomas Votruba
b39caa53cc [CI] try to fix ref on forks 2020-11-08 22:27:13 +00:00
Tomas Votruba
c1c52920fd typo name 2020-11-04 00:45:49 +01:00
Tomas Votruba
2cca77d376 [ci] try split of monorepo packages 2020-11-04 00:43:23 +01:00
Tomas Votruba
d204364e39 [ci] add conditional if on forks 2020-11-03 01:14:18 +01:00
Tomas Votruba
0233a4d086 [ci] add github.head_ref 2020-11-02 00:06:52 +01:00
Tomas Votruba
297ec316af
move suffix filesystem 3 (#4540) 2020-11-01 21:31:13 +01:00
Tomas Votruba
bb9aec10da space bug 2020-11-01 19:20:35 +01:00
Tomas Votruba
084805774b [ci] try head ref slug 2020-11-01 18:32:57 +01:00
Tomas Votruba
5c90d522e9 [ci] allow ci-review on master to show results 2020-11-01 18:05:37 +01:00
Tomas Votruba
b4d8f40b32 [ci] add branch location to pull 2020-11-01 18:01:43 +01:00
Tomas Votruba
3cc067997b [ci] try to fix pull on forks 2020-11-01 17:58:55 +01:00
Tomas Votruba
e7c1ded364
fix linter (#4537) 2020-11-01 16:57:12 +01:00
Tomas Votruba
c03b66f7cd
move suffix filesystem 2 (#4529)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-01 16:39:04 +01:00
Krystian Marcisz
3d4762b3b5
Bump EndBug/add-and-commit version to 5.1.0 (#4536) 2020-11-01 16:26:53 +01:00
Tomas Votruba
8542a3bcbc
Move from Filesystem rules to FileNode (#4528)
* make MoveServicesBySuffixToDirectoryRector with non-filesystem rector

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

* [ci-review] Apply coding standards

* fixup! make MoveServicesBySuffixToDirectoryRector with non-filesystem rector

Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-31 21:39:09 +00: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
2c120e283e
Inform about useless second part in tests fixture, after -----, if it is identical (#4514)
* embed skip fixture of same before/after

* [Testing] Add exception on identical second half of the fixture, that should not change

* [ci] use composer 2 for code_analysis

* [ci-review] Rector Rectify

Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-30 13:56:55 +00:00
Tomas Votruba
b369c3da95
[ci] use composer v2 for rector_ci (#4513) 2020-10-30 14:50:38 +01:00
Tomas Votruba
b302e493dd
[SOLID] Add MoveVariableDeclarationNearReferenceRector (#4410)
* Create test cases

* Create rector

* Add closure to possible parent scopes

* Register in SOLID set

* Document the feature

* fix adding variable in closure

* move MoveVariableDeclarationNearReferenceRector to Assign category, based on getNodeTypes()

* ci: drop phpunit matcher, not much helpful

* ignore for now, many cases to cover

* prepare release

Co-authored-by: Anna Filina <afilina@gmail.com>
2020-10-30 13:25:24 +00:00
Tomas Votruba
7da47f444b
[ci] automated rebase experiment (#4498)
* [ci] automated rebase experiment

* fixup! [ci] automated rebase experiment

* fixup! fixup! [ci] automated rebase experiment
2020-10-29 23:14:17 +01:00
Tomas Votruba
2116630748
[ci] remove old merageable file (#4497)
* [ci] remove old merageable file

* updat ecs
2020-10-28 23:26:17 +00:00
Tomas Votruba
2243a81445 [ci] add fix for missing secrets in 3rd party forks 2020-10-28 21:47:56 +01:00
Tomas Votruba
4d4def62d1 [ci] add fix for missing secrets in 3rd party forks 2020-10-28 21:47:29 +01:00
Tomas Votruba
35502016a6
Improve MoveOutMethodCallInsideIfConditionRector (#4492)
* skip rename

* add method call and variable name for MoveOutMethodCallInsideIfConditionRector

* decouple MethodCallToVariableNameResolver

* use trick with Scope if variable is already defined

* fixup! use trick with Scope if variable is already defined

* cover case with variable name and method call

* add decopule note future

* [ci-review] Rector Rectify

* [ci] try re-trigger ci-review after push automatically

Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-27 15:51:44 +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