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

how to check before git commit #79

Closed sunilit42 closed 6 years ago

sunilit42 commented 6 years ago

Hello,

we are using grumphp for code check and we want to check code some body do commit into git.

is that possible to add that script into grumphp?

lenaorobei commented 6 years ago

Hello @sunilit42, I think this question is not related to MEQP coding standard. grumphp docs can help you - https://github.com/phpro/grumphp/blob/master/doc/tasks/phpcs.md#magento You can add standard in the same way by running: composer require --dev magento/marketplace-eqp

sunilit42 commented 6 years ago

@lenaorobei

thanks for reply.

I already configure and working fine but how to check only 10 level severity

how to pass via grumphp.xml file?

lenaorobei commented 6 years ago

Try to add show_warnings: false parameter. It might work because only errors have 10 level severity.