Add pre-commit hook

This commit is contained in:
Ben Goldsworthy 2021-02-20 20:44:33 +00:00
parent 077ac22f27
commit 81a41202bb
4 changed files with 176 additions and 32 deletions

View file

@ -1,13 +1,11 @@
{
"scripts": {
"post-install-cmd": [
"PHPCodeChecker\\Installer::postInstall"
],
"post-update-cmd": [
"PHPCodeChecker\\Installer::postInstall"
]
},
"require": {
"wickedreports/phpcs-pre-commit-hook": "^0.7.0"
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.1",
"wp-coding-standards/wpcs": "^2.3"
},
"scripts": {
"post-install-cmd": [
"bash _tools/setup.sh"
]
}
}