Closed crissi closed 2 years ago
This is intended and documented behaviour:
GrumPHP provides a way of fixing your code. However, we won't automatically commit the changes, so that you have the chance to review what has been fixed! You can configure how fixers work with following config: See https://github.com/phpro/grumphp/blob/master/doc/parameters.md
I set the fixer to fix_by_default:
What else do I need? @veewee
Your configuration is correct:
It won't commit the changed files, since this could result in broken code being committed automatically by GrumPHP. Therefor, this requires a manual review + second commit
vendor/bin/grumphp -V
I want phpcsfixer to fix my files and commit them.
But right now it fixes the files, but do not commit them and this alert shows.
My configuration
Steps to reproduce:
git add -A && git commit -m"Test"
Result: