mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
The files with exceptions can be updated as there are many less cases to exclude. In the project files there are a few minor spelling corrections, and `$scrit` was changed to `$search_crit` to avoid a spelling suggestion. |
||
|---|---|---|
| .. | ||
| src/Renaming | ||
| .gitignore | ||
| composer.json | ||
| composer.lock | ||
| README.md | ||
| rector.php | ||
Refactoring code with rector
Installation
Run in this folder
cd dev/tools/rector
Install rector with composer
composer install
Usage
To make changes (Add --dry-run for test mode only)
cd dev/tools/rector
./vendor/bin/rector process --dry-run
To make changes on a given directory
cd dev/tools/rector
./vendor/bin/rector process [--dry-run] [--clear-cache] ../../../htdocs/core/