Magento – ERROR: the “MEQP2” coding standard is not installed

magento2meqp2

I am working on a module for magento 2.x, I need to validate the code of this for which install the following module Magento Extension Quality Program Coding Standard but trying to use it generates this error some idea.

ERROR: the "MEQP2" coding standard is not installed.

Best Answer

Try this

composer require --dev magento/magento-coding-standard

vendor/bin/phpcs --config-set installed_paths ../../magento/magento-coding-standard/

source https://github.com/magento/magento-coding-standard

Related Topic