s0enke / git-hooks

[ABANDONED] git-hooks
MIT License
245 stars 134 forks source link

PHPCS is a directory. #6

Open prashantg-cuelogic opened 10 years ago

prashantg-cuelogic commented 10 years ago

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 10 years ago

sorry, i don't have any idea, esp. in a windows env.

steyep commented 7 years ago

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.