I have installed the PHP_Codesniffer extension to find out my Magento 2 coding standard issues using this command:

phpcs --standard=Ecg --extensions=php,xml,phtml --report-full=/path/testing.log /path/

This extension lists out many errors in the log file from default Magento 2 itself.

So kindly let me know how to say that the default Magento 2 coding standard has so many issues.


1 Answer 1


I think there are still parts of Magento that need re-writing from M1. Also some of the code will be years old so could have been written before they even had M2 coding standards.

With the size of Magento's code base I'll be surprised if it ever fully meets standards.

  • 1
    Do what I say, not what I do ;) Commented Feb 7, 2017 at 20:25
  • Very true @RaphaelatDigitalPianism
    – Ben Crook
    Commented Feb 8, 2017 at 9:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.