magento / marketplace-eqp

Magento 1.x Coding Standard
http://docs.magento.com/marketplace/user_guide/Resources/pdf/Extension_Quality_Program_Overview.pdf
MIT License
224 stars 68 forks source link

On Mac OS 'MEQP\Utils\Helper' not found #114

Open roberto-ebizmarts opened 5 years ago

roberto-ebizmarts commented 5 years ago

Fatal error: Trait 'MEQP\Utils\Helper' not found in ~/.composer/vendor/magento-ecg/coding-standard/MEQP1/Sniffs/Classes/ResourceModelSniff.php on line 22.

Occurs when I run: phpcs --standard=MEQP1 /path-to-magento

lenaorobei commented 5 years ago

@roberto-ebizmarts, please provide detailed steps top reproduce this issue. Did you run composer install?

r-martins commented 5 years ago

Same error here. I cloned this repo in another directory (/var/www/_libs/magento-code-sniffer-M1-extensionQualityProgram/) and tried to run it manually:

phpcs --standard=/var/www/_libs/magento-code-sniffer-M1-extensionQualityProgram/MEQP1/ /private/var/www/pagseguro-exemplo/app/code/community/RicardoMartins/PagSeguro/Helper/Params.php

I use the same approach to other Magento Sniffing validation tools in ECG and Magento repos, but for this project, didn't work.

Update: same error happen when installing via composer, and also when updating phpcs from 3.4.0 to 3.4.2. It seems to be something else.

r-martins commented 5 years ago

Quick (and stupid fix): Copy MEQP folder inside MEQP1 folder...

image