Skip to content

Commit 1cbbe1e

Browse files
committed
ci: added magento coding standard as a dev dependency
1 parent b64db91 commit 1cbbe1e

File tree

2 files changed

+108
-2
lines changed

2 files changed

+108
-2
lines changed

composer.json

+10-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
}
1515
],
1616
"require-dev": {
17-
"squizlabs/php_codesniffer": "~3.5"
17+
"squizlabs/php_codesniffer": "~3.5",
18+
"magento/magento-coding-standard": "^6.0"
1819
},
1920
"license": [
2021
"Proprietary"
@@ -26,5 +27,13 @@
2627
"psr-4": {
2728
"Aligent\\Webhooks\\": ""
2829
}
30+
},
31+
"scripts": {
32+
"post-install-cmd": [
33+
"([ $COMPOSER_DEV_MODE -eq 0 ] || vendor/bin/phpcs --config-set installed_paths ../../magento/magento-coding-standard/)"
34+
],
35+
"post-update-cmd": [
36+
"([ $COMPOSER_DEV_MODE -eq 0 ] || vendor/bin/phpcs --config-set installed_paths ../../magento/magento-coding-standard/)"
37+
]
2938
}
3039
}

composer.lock

+98-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)