Closed biswajitpaul01 closed 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.
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/
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.