andkirby / commithook

CommitHooks code validation and auto-formatting commit message.
GNU General Public License v3.0
7 stars 3 forks source link

How is this different from PHPCS #7

Closed azngeek closed 9 years ago

azngeek commented 9 years ago

Hello,

i had a fast look into the code but how is this different from running PHPCS directly?

greets

andkirby commented 9 years ago

Hello,

I'm pretty sure PHPCS is good for this. And you know I use it in PhpStorm to validate my code in development. I didn't just get a fast way to use PHPCS within Magento. I had some draft script which worked good but it was hard to support. Thus was created CommitHook project. We use it and it works so far. I'm pretty sure that there is exist a way to use PHPCS via pre-commit.