Skip to content

Install an execute script of specify quality tools to your git pre-commit hook, and it executes only for changed files

License

Notifications You must be signed in to change notification settings

kayw-geek/quality-hook-installer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quality Hook Installer

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

  1. quality run install --phpstan --php-cs-fixer
  2. Execute git add . in your project.
  3. git commit -m 'xxx'
  4. 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

About

Install an execute script of specify quality tools to your git pre-commit hook, and it executes only for changed files

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages