-
Notifications
You must be signed in to change notification settings - Fork 1
PHP Storm integration PHP Code Sniffer
Nils Wogatzky edited this page Apr 14, 2018
·
1 revision
At first make sure you got phpcs installed, this description uses composer to get it as a dev-dependency.
composer.json
{
"require-dev": {
"squizlabs/php_codesniffer": "*"
}
}
droxy.toml
[[command]]
name="phpcs"
image="php7.2"
command="vendor/bin/phpcs"
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 Code Sniffer in PHPStorm.
Tips
- Don't forget to active the Code Sniffer in the inspections!
- tail -f on droxy.log to get some debugging info