Run Rector (Automated Refactoring)
run_rectorApply automated PHP refactoring using Rector. Configure rules via rector.php and specify a target file or directory.
Instructions
Rector ile otomatik refactoring uygular (dryRun=false). 'rector.php' yapılandırması gerekir.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"filepath": "<filepath>"
},
"name": "run_rector"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | Sadece değişiklik önizlemesi (true). Uygulamak için false kullanın. Varsayılan: true. | |
| filepath | Yes | İşlenecek dosya veya dizin. Örnek: ./src | |
| clearCache | No | Rector cache temizle. Varsayılan: false. | |
| projectPath | No | İsteğe bağlı proje kökü (otomatik tespit edilir). |