Skip to content

Commit 3e833fa

Browse files
authored
Merge pull request #4 from YouweGit/phpcs-installed_paths
Automatically update/set installed_paths for phpcs
2 parents 549d192 + 5293cfb commit 3e833fa

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

composer.json

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
],
1212
"homepage": "https://github.com/YouweGit/coding-standard-magento2",
1313
"require": {
14+
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.2",
1415
"magento/magento-coding-standard": "*",
1516
"youwe/coding-standard": "^3.5.0"
1617
},
@@ -19,15 +20,10 @@
1920
"YouweMagento2": "src/YouweMagento2"
2021
}
2122
},
22-
"scripts": {
23-
"post-install-cmd": [
24-
"@phpcs-set-paths"
25-
],
26-
"post-update-cmd": [
27-
"@phpcs-set-paths"
28-
],
29-
"phpcs-set-paths": [
30-
"vendor/bin/phpcs --config-set installed_paths ../../youwe/coding-standard/src/,../../youwe/coding-standard-magento2/src/,../../magento/magento-coding-standard/,../../phpcompatibility/php-compatibility/"
31-
]
23+
"config": {
24+
"allow-plugins": {
25+
"dealerdirect/phpcodesniffer-composer-installer": true
26+
},
27+
"sort-packages": true
3228
}
3329
}

0 commit comments

Comments
 (0)