CodeSniffer in PHP Storm

Whenever I open a file (in PHP Storm), an error message appears.

		phpcs: ERROR: Referenced sniff "SlevomatCodingStandard.Arrays.TrailingArrayComma" does not exist
		Run "phpcs --help" for usage information

Don’t know why? How to fix it?

Thank you

I’m guessing that you’ve got a code sniffer extension enabled, but incorrectly configured.

1 Like

I deleted path in phpstorm and no message yet.

could it be that you have phpcs globally installed? Try to make phpstorm use phpcs from the vendor/bin folder

Another solution could be install dealerdirect/phpcodesniffer-composer-installer