1

As I was working on a new "awesome" M1 extension (after I've read How to write a custom extension and others best practice like this or this), I decided to check if I was respecting the coding standards (better late than never).

So, I found this question and tried the magento-marketplace-eqp tool.

It was very usefull and it pushed me to correct some formatting settings of my favorite IDE.

But, when I asked about this tool to some other developers, they answered me that they were using it but they advised about a lot of different tools like :

PHP Mess Detector aka phpmd with this for M1

Copy/Paste Detector aka phpcd

PHP-CS-Fixer

So, I'm now quite lost ... I will try these tools and I will make my own opinion on it.

My question is certainly too much suggestive but if you know/use some other tools and if you think they are usefull (or should even be mandatory for every M1 developers...), please tell me which ones.

In other words, what are you doing to ensure your code respects the coding standards and best practices ?

Thanks.

1

Alternatives or additional tools?

if you know/use some other tools and if you think they are usefull

  • 1
    Thanks @sv3n. My question is more about how to ensure my code will respect standards (M1, PSR1/PSR2 , etc) and good practices. Magerun can in fact be usefull for this purpose : detect rewrite conflicts and so many others. Working in TDD is, maybe not enough, considered as being a good practice : so PhpUnit seems to be a good start for it (I'm trying to use code-x) If I well understood how works magento-marketplace-eqp, this is actually phpcs (with appropriate rules) and phpcbf. About xhprofiler, I never used it : so I will give it a try. – Julien Loizelet Mar 2 '18 at 22:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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