From 6cde9c657f77f32b32af50c5ba0d4c8a94e9d5bd Mon Sep 17 00:00:00 2001 From: SilverFire - Dmitry Naumenko Date: Thu, 17 Oct 2019 17:38:26 +0300 Subject: [PATCH] Added rector sets composition --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index b71600343855..734b34eb2494 100644 --- a/README.md +++ b/README.md @@ -157,6 +157,22 @@ vendor/bin/rector process src --set symfony40 --dry-run vendor/bin/rector process src --set symfony40 ``` +Some sets, such as [`code-quality`](/config/set/code-quality) can be +used on a regular basis. You can include them in your `rector.yaml` to +run them by default: + +```yaml +# rector.yaml +imports: + - { resource: 'vendor/rector/rector/config/set/code-quality/*.yaml' } + - { resource: 'vendor/rector/rector/config/set/php/php71.yaml' } + - { resource: 'vendor/rector/rector/config/set/php/php72.yaml' } + - { resource: 'vendor/rector/rector/config/set/php/php73.yaml' } +``` + +> If you use Rector in Docker, you can use absolute path, e.g. +> `/rector/config/set/php/php71.yaml` + ### B. Custom Sets 1. Create `rector.yaml` with desired Rectors: