dolibarr/dev/tools/rector/README.md
Laurent Destailleur fca403b49b Debug php-cs-fixer
2023-12-03 21:03:18 +01:00

29 lines
449 B
Markdown

### Refactoring code with [rector](https://getrector.com)
#### Installation
Run in this folder
```shell
cd dev/tools/rector
```
Install rector with composer
```shell
composer install
```
#### Usage
##### To make changes (Add --dry-run for test mode only)
```shell
./vendor/bin/rector process --dry-run
```
##### To make changes on a given directory
```shell
./vendor/bin/rector process [--dry-run] [--clear-cache] ../../../htdocs/core/
```