dolibarr/dev/tools/rector
MDW ee3875eb4e
Qual: Fix french comments and improve detector (#39026)
* Qual: Generate phan specific changed php files list

# Qual: Generate phan specific changed php files list

Uses multiple parts of the Phan configuration to select and exclude files
for phan analysis.

* avoid catching special characters in regexes as indicators of french

* Qual: Translate french to english
2026-07-01 12:26:51 +02:00
..
src/Renaming Qual: Fix french comments and improve detector (#39026) 2026-07-01 12:26:51 +02:00
.gitignore Clean files 2026-01-07 19:01:54 +01:00
composer.json
composer.lock
README.md Test 2025-09-18 15:41:47 +02:00
rector.php Clean code with rector 2025-09-18 16:26:38 +02:00

Refactoring code with rector

Installation

Run in this folder

cd dev/tools/rector

Install rector with composer

composer install

Usage

To make changes (remove --dry-run for real run)
cd dev/tools/rector
./vendor/bin/rector process --debug --dry-run
To make changes on a given directory
cd dev/tools/rector
./vendor/bin/rector process --debug [--dry-run] [--clear-cache] ../../../htdocs/core/