I have added grumphp via composer, added and modified grumphp.yml.dist. I deliberately break things for PHPCS, Git commit message and others, but the hook never gets fired. I may be missing something, but not sure what.
# Generate empty folder
mkdir tmp
cd tmp
git init
echo "vendor" > .gitignore
pbpaste > grumphp.yml
composer require --dev phpro/grumphp
# Your actions
# Please add the steps on how to reproduce the issue here.
# Run GrumPHP:
git add -A && git commit -m"Test"
# or
./vendor/bin/grumphp run
Result:
# The commit is made and it does not activate the pre commit hook.
Please ignore this. This is an issue with my git hooks settings.
My hooksPath is set to ~/.git-hooks, which is global, whereas it should be project specific.
GrumPHP 1.3.2
I have added grumphp via composer, added and modified
grumphp.yml.dist
. I deliberately break things for PHPCS, Git commit message and others, but the hook never gets fired. I may be missing something, but not sure what.My configuration
Steps to reproduce:
Result: