Я получаю эту ошибку в Visual Studio:
phpcs: The "WordPress" coding standard is not installed. Please review your configuration an try again.
В settings.json
:
"php.suggest.basic": true,
"php.validate.run": "onSave",
"php.validate.executablePath": "/usr/bin/php",
"phpcs.enable": true,
"phpcs.executablePath": "/Users/xxx/.composer/vendor/bin/phpcs",
"phpcs.standard": "WordPress"
В терминале:
$ which phpcs
$ /Users/xxx/.composer/vendor/bin/phpcs
$ which php
$ /usr/bin/php
$ phpcs --config-show
Using config file: /Users/xxx/.composer/vendor/squizlabs/php_codesniffer/CodeSniffer.conf
installed_path: /Users/xxx/.composer/vendor/wp-coding-standards/wpcs
Что я делаю неправильно?