-
Notifications
You must be signed in to change notification settings - Fork 1
PHP Storm integration PHP Mess Detector
Nils Wogatzky edited this page Apr 14, 2018
·
1 revision
At first make sure you got phpmd installed, this description uses composer to get it as a dev-dependency.
composer.json
{
"require-dev": {
"phpmd/phpmd": "^2.6"
}
}
droxy.toml
[[command]]
name="phpmd"
image="php7.2"
command="vendor/bin/phpmd"
removeContainer=true
workDir="/home/your_project_path"
volumes=[
"/tmp:/tmp",
"/home/your_project_path:/home/your_project_path"
]
Now you can set your droxy command as Mess Detector in PHPStorm.
Tips
- Don't forget to active the MessDetector in the inspections!
- tail -f on droxy.log to get some debugging info