WPEverest Git Hooks
Collection of WPEverest core git hooks., (*1)
composer require wpeverest/wpeverest-git-hooks
Include the follow lines into the project's composer.json
:, (*2)
"scripts": { "pre-update-cmd": "WPEverest\\GitHooks\\Hooks::preHooks", "pre-install-cmd": "WPEverest\\GitHooks\\Hooks::preHooks", "post-update-cmd": "WPEverest\\GitHooks\\Hooks::postHooks", "post-install-cmd": "WPEverest\\GitHooks\\Hooks::postHooks" }
By default should already run all commands from composer scripts
when installed, but if necessary run it manually is possible with the follow commands:, (*3)
composer run-script pre-update-cmd composer run-script post-update-cmd
phpcs.xml
or phpcs.xml.dist
by default. No longer accepts phpcs.ruleset.xml
.Inspired by:, (*4)