Skip to content
This repository was archived by the owner on Jun 15, 2022. It is now read-only.

Commit b6e89bf

Browse files
committed
Include the WooCommerce git hooks to ensure that code's always being run through PHP_CodeSniffer on a pre-commit hook, since we're 100% compliant at this point
1 parent 9a95351 commit b6e89bf

File tree

2 files changed

+47
-1
lines changed

2 files changed

+47
-1
lines changed

composer.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"dealerdirect/phpcodesniffer-composer-installer": "^0.4.4",
1818
"wimg/php-compatibility": "^8.1",
1919
"woocommerce/woocommerce": "dev-feature/more-order-tests",
20+
"woocommerce/woocommerce-git-hooks": "*",
2021
"woocommerce/woocommerce-sniffs": "^0.0.1",
2122
"wp-coding-standards/wpcs": "^0.14"
2223
},
@@ -35,6 +36,18 @@
3536
]
3637
},
3738
"scripts": {
39+
"pre-update-cmd": [
40+
"WooCommerce\\GitHooks\\Hooks::preHooks"
41+
],
42+
"pre-install-cmd": [
43+
"WooCommerce\\GitHooks\\Hooks::preHooks"
44+
],
45+
"post-install-cmd": [
46+
"WooCommerce\\GitHooks\\Hooks::postHooks"
47+
],
48+
"post-update-cmd": [
49+
"WooCommerce\\GitHooks\\Hooks::postHooks"
50+
],
3851
"test-coverage": [
3952
"phpunit --testsuite=plugin --coverage-html=tests/coverage"
4053
]

composer.lock

Lines changed: 34 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)