PHPCS is a directory.
Opened this issue · 2 comments
prashantg-cuelogic commented
Hello,
I am trying to use this hook on my windows with gitbash.
While committing the files it prompts me as
"9ceafc16be2f0e3d13d80456028bcfef94f0b1d1
.git/hooks/pre-commit: line 106: C:/xampp/php/PEAR/PHP/CodeSniffer/Standards/PHP
CS: is a directory"
Can anyone help me in same?
Thanks in advance
s0enke commented
sorry, i don't have any idea, esp. in a windows env.
steyep commented
While committing the files it prompts me as
9ceafc16be2f0e3d13d80456028bcfef94f0b1d1 .git/hooks/pre-commit: line 106: C:/xampp/php/PEAR/PHP/CodeSniffer/Standards/PHP CS: is a directory
My guess is that you've set the path to your phpcs
executable to the PHPCS ruleset directory in your config
file. I don't know where it's installed on a Windows machine but you could probably determine the path by running where phpcs
in the command shell or which phpcs
in gitbash.