From 5293cfb4ff2cad3775f79fb3f25f1159cd49ef59 Mon Sep 17 00:00:00 2001 From: Dan Wallis Date: Thu, 29 Sep 2022 12:31:36 +0100 Subject: [PATCH] Automatically update/set installed_paths for phpcs --- composer.json | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/composer.json b/composer.json index ee5f0e3..d236fd3 100644 --- a/composer.json +++ b/composer.json @@ -11,6 +11,7 @@ ], "homepage": "https://github.com/YouweGit/coding-standard-magento2", "require": { + "dealerdirect/phpcodesniffer-composer-installer": "^0.7.2", "magento/magento-coding-standard": "*", "youwe/coding-standard": "^3.5.0" }, @@ -19,15 +20,10 @@ "YouweMagento2": "src/YouweMagento2" } }, - "scripts": { - "post-install-cmd": [ - "@phpcs-set-paths" - ], - "post-update-cmd": [ - "@phpcs-set-paths" - ], - "phpcs-set-paths": [ - "vendor/bin/phpcs --config-set installed_paths ../../youwe/coding-standard/src/,../../youwe/coding-standard-magento2/src/,../../magento/magento-coding-standard/,../../phpcompatibility/php-compatibility/" - ] + "config": { + "allow-plugins": { + "dealerdirect/phpcodesniffer-composer-installer": true + }, + "sort-packages": true } }