Skip to content
This repository has been archived by the owner on Mar 6, 2021. It is now read-only.

PHPCS is a directory. #6

Open
prashantg-cuelogic opened this issue Dec 31, 2013 · 2 comments
Open

PHPCS is a directory. #6

prashantg-cuelogic opened this issue Dec 31, 2013 · 2 comments

Comments

@prashantg-cuelogic
Copy link

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
Copy link
Owner

s0enke commented Jan 14, 2014

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

@steyep
Copy link

steyep commented May 5, 2017

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants