Skip to content

Commit affbdeb

Browse files
authored
Added some dev tools & code sniffers (#2400)
1 parent ba9ffe0 commit affbdeb

File tree

2 files changed

+1728
-37
lines changed

2 files changed

+1728
-37
lines changed

composer.json

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,25 @@
2222
"magento-hackathon/magento-composer-installer": "^3.1 || ^2.1 || ^4.0"
2323
},
2424
"require-dev": {
25+
"friendsofphp/php-cs-fixer": ">=3.4",
2526
"macopedia/phpstan-magento1": "^1.0.4",
26-
"phpstan/phpstan": "^1.8"
27+
"magento-ecg/coding-standard": "^4.4",
28+
"phpcompatibility/php-compatibility": "^9.3",
29+
"phpmd/phpmd": "^2.12",
30+
"phpstan/phpstan": "^1.8",
31+
"squizlabs/php_codesniffer": "^3.7"
32+
},
33+
"scripts": {
34+
"set-phpcs-paths": [
35+
"[ $COMPOSER_DEV_MODE -eq 0 ] || vendor/bin/phpcs --config-set installed_paths vendor/phpcompatibility/php-compatibility,vendor/magento-ecg/coding-standard",
36+
"[ $COMPOSER_DEV_MODE -eq 0 ] || vendor/bin/phpcs -i"
37+
],
38+
"post-install-cmd": [
39+
"@set-phpcs-paths"
40+
],
41+
"post-update-cmd": [
42+
"@set-phpcs-paths"
43+
]
2744
},
2845
"conflict": {
2946
"n98/n98_layouthelper": "*"

0 commit comments

Comments
 (0)