phpro / grumphp

A PHP code-quality tool
MIT License
4.12k stars 430 forks source link

Is it possible to disable Git hooks? #979

Closed TravisCarden closed 2 years ago

TravisCarden commented 2 years ago
Q A
Version 1.5.0
Bug? no
New feature? no
Question? yes
Documentation? no
Related tickets n/a

Is there a way to prevent GrumPHP from initializing the Git hooks upon installation? I only use it manually and on CI, and I don't want it to run on commits.

Steps to reproduce:

pbpaste > grumphp.yml
composer require --dev phpro/grumphp

Result:

Watch out! GrumPHP is sniffing your commits!
veewee commented 2 years ago

Yes,

It's documented here https://github.com/phpro/grumphp/blob/master/doc/installation/exotic.md#register-paths-in-your-composer-file

TravisCarden commented 2 years ago

Oh! I overlooked extra.grumphp.disable-plugin. Thanks! 🙂