Configure Code Sniffer for PHPStorm and Magento 2

In order to have a good and maintainable application, it’s very important to have a high quality product code. The code quality usually depends on the developer’s professionalism. But among the thousands lines of code something might be missed. Fortunately, there are few small but very useful utilities that can automate some routines and help you check the code using different rules for different coding standards. In PHP development there are two popular utilities for code validation: Code Sniffer and Mess Detector.