Run PHP Mess Detector (PHPMD)
run_phpmdAnalyze PHP code with PHPMD to detect complexity, dead code, design flaws, and naming violations.
Instructions
PHPMD ile kod karmaşıklığı, kullanılmayan kod, tasarım sorunları ve adlandırma ihlallerini raporlar.
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_phpmd"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Çıktı formatı. Varsayılan: text. | text |
| filepath | Yes | PHPMD tarafından taranacak dosya veya dizin. Örnek: ./src | |
| rulesets | No | Kullanılacak kurallar. Varsayılan: cleancode,codesize,design,naming,unusedcode. | |
| projectPath | No | İsteğe bağlı proje kökü (otomatik tespit edilir). |