204 Commits

Author SHA1 Message Date
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
Tomas Votruba
44b27f779e
[EarlyReturn] Decouple new set (#4490)
* [set] decouple new code-quality-strict

* decopule early-return set [closes #4464]

* [docker] drop prestissimo, as composer v2 does not need it

* [ci] move coding standard to ci_review

* [ci] try to run rector-ci on contributors
2020-10-27 13:47:37 +00:00
Tomas Votruba
20e95bee61
[CI] Run ECS only on match git diff (#4487)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-26 12:28:32 +01:00
Tomas Votruba
2e86dc5876 colors to ci 2020-10-26 11:53:57 +01:00
Tomas Votruba
9c91a60018
[ci] add ci-review job (#4484)
* [ci] add ci-review job

* add all

* [ci] add docs check

* [ci] simler rector ci
2020-10-26 00:14:24 +00:00
Tomas Votruba
6f56d0dfbe
[docs] apply correct standard on dumper Rector list + apply automated CI commit on propagate monorepo deps (#4481) 2020-10-26 00:22:53 +01:00
Tomas Votruba
2fc46fde21 ci: use compsoer v1 2020-10-25 14:49:56 +01:00
Tomas Votruba
75d25a1dcb
[CodeQuality] Decouple complete dynamic properties rector, add skip of Closure::bind() (#4466)
* [ci] temporarily hide split monorepo

* [CodeQuality] Decouple complete dynamic properties rector, add skip of bind()

* [rector] [CodeQuality] Decouple complete dynamic properties rector, add skip of bind()

* [cs] [CodeQuality] Decouple complete dynamic properties rector, add skip of bind()

Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-20 20:27:12 +00:00
TomasVotruba
88fb49c9d2 add env 2020-10-20 19:00:02 +02:00
TomasVotruba
d14b17f664 fix github action version 2020-10-20 18:49:35 +02:00
TomasVotruba
c35b3f3453 [ci] test split monorepo 2020-10-20 18:46:09 +02:00
TomasVotruba
362b62531a ci: run coverage only on master 2020-10-20 16:23:58 +02:00
Tomas Votruba
deabd2d593
[CI] fasten up Rector CI feedback (#4449) 2020-10-19 16:37:35 +02:00
Tomas Votruba
e845d7cea8
[DoctrineCodeQuality] Add ImproveDoctrineCollectionDocTypeInEntityRector (#4442)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-18 18:29:35 +02:00
Tomas Votruba
c84690baa6
[DeadCode] Various improvements (#4417) 2020-10-15 14:15:01 +02:00
Tomas Votruba
a9f737bcaf
decouple CommentRemover (#4412) 2020-10-15 11:50:15 +02:00
Abdul Malik Ikhsan
eb1f9c5e32
reactivate coverage report (#4405) 2020-10-14 18:07:59 +02:00
Tomas Votruba
cb991af9c6
hotfix mysql connection resolving (#4399) 2020-10-12 21:06:24 +02:00
Tomas Votruba
01514ab9a8
[SimplePhpDocParser] Add README + getParam*() helper methods (#4393) 2020-10-11 16:17:43 +02:00
TomasVotruba
c05e43defa add colors 2020-10-10 23:23:24 +02:00
Tomas Votruba
4a76cdaa82
[SymfonyPHPConfig] Add monorepo split for value objects function (#4153)
* add monorepo split for symfony-php-config

* [SOLID] Prevent replacing referenced parametes with inlined constnat value

* make Symfon 5.0- compatible

* add support for reference skip in constructor

* [rector] add support for reference skip in constructor

* [cs] add support for reference skip in constructor

* improve misisng rule feedback

* underscore

* Fix ChangeReadOnlyVariableWithDefaultValueToConstantRector for new

* add clear-cache to all commands

* colors

* [rector] colors

* [cs] colors

Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-10 17:42:43 +00:00
Tomas Votruba
c43f611d85
[ci] show rector ci fail (#4280)
* [ci] show rector ci fail

* try --dry-run removal

* [rector] try --dry-run removal

Co-authored-by: rector-bot <tomas@getrector.org>
2020-09-23 11:29:42 +00:00
Tomas Votruba
7aad4bbf2f
[PHPStan] Enable regex constant rule (#4279) 2020-09-23 11:16:40 +02:00
Tomas Votruba
a73fc88add
[Docs] update docs with node examples (#4269) 2020-09-22 11:27:44 +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
Markus Staab
59547a5cbe
Github Actions: add a job which tests the lowest supported versions (#4220)
* Github Actions: add a job which tests the lowest supported versions

* Update tests.yaml

* run lowest only on php 7.2

to reduce the number of generated jobs

* faise min webmozart/assert version

we need at least https://github.com/webmozart/assert/pull/160

* use quotes
2020-09-14 21:01:01 +02:00
Tomas Votruba
33b9ac6fb8
[ci] Add PHP Linter (#4188) 2020-09-10 22:05:34 +00:00
Abdul Malik Ikhsan
c17dae56dd
register check-markdown command to composer script (#4149)
* register check-markdown command to composer script

* remove .github/workflows/check_markdown.yml

* add --fix to vendor/bin/ecs check-markdown README.md

* update symplify/autowire-array-parameter to ^8.2.27 and symplify/easy-coding-standard to ^8.2.27
2020-09-09 18:05:38 +02:00
Tomas Votruba
4f1beae3fd
[DX] Fix NoAbstractMethodRule cases (#4180)
* decouple IsAbleFuncCallInterface

* decouple WithFunctionToNetteUtilsStringsRectorInterface

* decouple NodeTraversableInterface

* decouple RectorInterfaceAwareInterface

* [ci] disable markdown check to prevent user bothering
2020-09-09 09:07:14 +00:00
Tomas Votruba
6508aedd13
[Downgrade PHP 8.0] Add union types to doc types (#4082) 2020-09-08 12:00:38 +02:00
Abdul Malik Ikhsan
46e2b450b3
add check markdown github action workflow for fix README.md markdown file (#4134) 2020-09-08 11:41:32 +02:00
Tomas Votruba
c1b2824ab4
show command - display loaded sets + fix set provider (#4111) 2020-09-02 17:26:33 +02:00
Tomas Votruba
7ac228c638
[CI] Add type-declaration set (#4089)
* [CI] Add type-declaration set

* [rector] [CI] Add type-declaration set

* [cs] [CI] Add type-declaration set

* skip nullable void

* add anonymous parent/interface support

* refactor MultiExceptionCatchRector to use Catch_ over integers

* type fixes

* fix unoin array type override

* remove unused test cases

* drop overcomplicated InlineValidationRulesToArrayDefinitionRector

* skip assign on var

* [rector] skip assign on var

* [cs] skip assign on var

* [rector] [cs] skip assign on var

* skip assign on var

* fixes

* [rector] fixes

* [cs] fixes

Co-authored-by: rector-bot <tomas@getrector.org>
2020-09-01 17:56:30 +00:00
Tomas Votruba
c2cfdaeacd
[DX] Add MethodVisibility value object (#4028) 2020-08-25 21:19:12 +02:00
Tomas Votruba
de4748f935
README + recipe improvements (#4017)
* rector-recipe and README improvements

* ci: add generate command test
2020-08-24 21:25:26 +00:00
Tomas Votruba
106fb1101a
service entity repository combo (#3945)
* service entity repo combo

* apply cs, add tests, fixes

* update doc parser

* [Generic] Add RemoveAnnotationRector

* add nullsafe nodes to docs

* drop AddEmptyLineBetweenCallsInPhpConfigRector, not that useful

* namespace and phpstan fix

* [ci] merge PHPStan compat to one job, no gain split attention

* [rector] [ci] merge PHPStan compat to one job, no gain split attention

* [cs] [ci] merge PHPStan compat to one job, no gain split attention

Co-authored-by: Marek Šimeček <marek.simecek@footshop.cz>
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-12 09:44:34 +00:00
Tomas Votruba
20e28ea763
[cig Improve workflow for squash commits (#3855) 2020-08-01 01:39:40 +02:00
TomasVotruba
10e024b3e2 [CI] temporarily disable lowest dependencies, they get stuck for some reason 2020-07-30 16:09:16 +02:00
TomasVotruba
1a82613c3f rename ValidateFixtureCommand to more explicit ValidateFixtureContent 2020-07-27 10:51:10 +02:00
TomasVotruba
70672b559f CI: run standalone run only on master, performance heavy slows feeback loop 2020-07-26 11:52:37 +02:00
TomasVotruba
8be555843b drop ValidateServicesInSetsCommand, now handled in PHP analysis 2020-07-26 11:47:38 +02:00
TomasVotruba
a51443cc12 ci: get sonar back 2020-07-24 17:27:50 +02:00
TomasVotruba
1773c7eecc less sleep 2020-07-24 17:21:15 +02:00
TomasVotruba
adcaf173d3 add custom control by method name 2020-07-24 16:02:09 +02:00
TomasVotruba
d4f6c497a7 [Nette] Add form dim access to standalone node control 2020-07-22 21:38:34 +02:00
TomasVotruba
afe6799cec fix branch name 2020-07-22 00:44:03 +02:00
TomasVotruba
07f3ce68a9 ci: delay standalone run to get the latest version 2020-07-22 00:39:16 +02:00
TomasVotruba
7f3022dcb8 colors to ci 2020-07-21 21:56:06 +02:00