2017 © Pedro Peláez
 

library code-quality

Code quality pre commit hook

image

philwc/code-quality

Code quality pre commit hook

  • Wednesday, August 6, 2014
  • by philwc
  • Repository
  • 1 Watchers
  • 0 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

code-quality

This is based on the blog post at http://carlosbuenosvinos.com/write-your-git-hooks-in-php-and-keep-them-under-git-control/, (*1)

The quality tools are specified in composer and will be automatically downloaded., (*2)

To Use

Add the package as a requirement:, (*3)

"require": {
    "philwc/code-quality": "dev-master",
}

Add the scripts to your root comnposer.json (If you want to be notified about the hook not being installed), (*4)

"scripts": {
    "pre-update-cmd": "philwc\\Hooks::checkHooks",
    "pre-install-cmd": "philwc\\Hooks::checkHooks"
}

Install the hook, (*5)

rm -rf .git/hooks && ln -s ../vendor/philwc/code-quality/src/hooks ./.git/hooks

The Versions

06/08 2014