cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2 Linting

Magento 2 Linting

Hi there,

 

I'm building an extension for Magento 2 and I came across a small problem: Linting. I noticed that Magento picks up a lot of rules from various PHP Coding Standards, but I can't seem to find the whole list.

 

Is there a Magento CLI tool to help me lint my extension's code the way Magento suggest? If not, is there a ruleset.xml that, when applied to phpcs, will give me all the linting warnings that Magento would? If not, which are the PHP Coding Standards Magento follows (and are there any conflicts between them)?

 

Really appreciate if anyone can help me.

 

Cheers,