DEV Community

Zeeshan Ahmd
Zeeshan Ahmd

Posted on

Configuring PHP_CodeSniffer in PhpStorm

  1. Navigae to Preferences > Languages & Frameworks > PHP > Quality Tools and expand the PHP_CodeSniffer section and select Configuration to Local like following

  2. Next, we have to set the binary paths of PHP_CodeSniffer. For that click on the three dots button next to Configuration dropdown and then inside the opened dialog set the phpcs and phpcbf binary paths:

  3. Finally we have to enable the PHP_CodeSniffer in the IDE by navigating to Preferences > Editor > Inspections > PHP > Quality Tools and enable the PHP CS Fixer validation and PHP_CodeSniffer validation.

Top comments (0)