pestle
pestle copied to clipboard
Generated code is not PSR-2 compliant.
It would be nice if the generated code where PSR-2 compliant.
Don't see any problems with this. @Vinai -- do you have a preferred linting method for PSR-2?
I use vendor/bin/phpcs --standard=psr2 <path-to-module>
The Magento coding standard extends psr2 somewhat, to use it the command is
vendor/bin/phpcs --standard=dev/tests/static/framework/Magento <path-to-module>
Can't help but mention for the record that I personally don't think the Magento coding standard is very good, for example enforcing PHPDoc comments only adds noise to the code.