Closed giacmir closed 5 years ago
@giacmir I understand the reason you want to made this change, but we cannot accept this PR because MEQP1.Security.LanguageConstruct.DirectOutput
will not work as expected.
We are working on Magento 2 sniffs consolidation and will take this issue into account for the future implementation.
I've changed the ruleset.xml file to use relative references so that these rules can be added as a dependency to an existing magento project with
composer require --dev
.In this way you don't need to install rules globally and, together with a phpcs.xml file you can drop the setup time and complexity for other teammates, automated pipelines, and so on.
In the past I opened the very same issue in https://github.com/magento-ecg/coding-standard/issues/37
The only thing is that I'm not able to do and need some guidance is to split the
MEQP1.Security.LanguageConstruct.DirectOutput
Sniff to a different class since relative rule declaration works per file and not per rule.