-
Notifications
You must be signed in to change notification settings - Fork 160
AC-672: Create phpcs static check for LicenseTest #312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AC-672: Create phpcs static check for LicenseTest #312
Conversation
Magento2/ruleset.xml
Outdated
@@ -194,6 +194,10 @@ | |||
<type>warning</type> | |||
<exclude-pattern>*\.xml$</exclude-pattern> | |||
</rule> | |||
<rule ref="Magento2.Legacy.License"> | |||
<severity>9</severity> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd move it to Magento specific (warning 8)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
if (stripos($commentContent, 'copyright') === false) { | ||
return; | ||
} | ||
foreach (['Irubin Consulting Inc', 'DBA Varien', 'Magento Inc'] as $legacyText) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd move the array to a constant.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
@magento import pr to magento-commerce/magento-coding-standard |
@eliseacornejo the Pull Request is successfully imported. |
No description provided.