Closed moleman closed 6 years ago
@moleman thank you for contribution.
An answer to your question: for Magento 1.x projects we exclude lib
folder because most of the commonly used libraries follow different coding standards and we cannot force developers into changing it in order to follow MEQP standard.
I found an issue with running the MEQP1 ruleset in Jenkins because the default Jenkins home directory is
/var/lib/jenkins
. This will cause<exclude-pattern>*/lib/*</exclude-pattern>
to exclude all files because PHPCS will check the full absolute path which will always includelib
in a default installation of Jenkins.The only question I have with this fix is if it makes sense to have the exclude pattern at all.