dolibarr/dev/tools/rector
MDW 2e254892ea
Qual: Clean up codespell exceptions (#28104)
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.
2024-02-10 17:27:36 +01:00
..
src/Renaming Qual: Clean up codespell exceptions (#28104) 2024-02-10 17:27:36 +01:00
.gitignore Fix php8.2 warnings 2023-11-27 11:39:32 +01:00
composer.json Add Rector (automatic refactoring) 2023-10-08 20:25:46 +02:00
composer.lock Add Rector (automatic refactoring) 2023-10-08 20:25:46 +02:00
README.md Fix #28071 - New branch to fix bad merge (#28083) 2024-02-09 15:58:49 +01:00
rector.php Fix #28071 - New branch to fix bad merge (#28083) 2024-02-09 15:58:49 +01:00

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/