ikappas / vscode-phpcs

PHP CodeSniffer for Visual Studio Code
MIT License
128 stars 56 forks source link

Permission denied in local project #152

Closed biswajitpaul01 closed 5 years ago

biswajitpaul01 commented 5 years ago

I installed it globally and set the path to "/home/biswajit/.composer/vendor/squizlabs/php_codesniffer/bin". Then I got this error:

phpcs: Unable to locate phpcs. Command failed: "/var/www/html/projects/sample" --version /bin/sh: 1: /var/www/html/projects/sample: Permission denied

What could be the solution?

Thanks in advance.

biswajitpaul01 commented 5 years ago

Fixed using this tutorial: https://javorszky.co.uk/2018/07/30/set-up-phpcs-and-wordpress-extra-coding-standards-and-configure-your-ides-to-use-them/