kayw / quality-hook-installer
Install an execute script of specify quality tools to your git pre-commit hook, and it executes only for changed files
Installs: 33
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- symfony/console: ^6.0.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.22
- phpstan/phpstan: *
README
Install an execute script of specify quality tools to your git pre-commit hook, and it executes only for changed files
Install
composer global require kayw/quality-hook-installer
Usage
quality run install --phpstan --php-cs-fixer
- Execute
git add .
in your project. git commit -m 'xxx'
- The pre-commit hook will be triggered and the PHPStan and PHPCsFixer will execute only for changed files.
Commands
The following command will execute quality inspection only for changed files
quality run --phpstan --php-cs-fixer
The following command will write in your pre-commit of git hook
quality run install --phpstan --php-cs-fixer
The following command will remove your pre-commit of git hook
quality run uninstall