-
Notifications
You must be signed in to change notification settings - Fork 160
AC-206: Create UCT phpcs ruleset for customizations only #313
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-206: Create UCT phpcs ruleset for customizations only #313
Conversation
…standard into AC-206_customizations_ruleset
…standard into AC-206_customizations_ruleset
@@ -37,7 +37,8 @@ class RestrictedCodeSniff implements Sniff | |||
*/ | |||
public function __construct() | |||
{ | |||
$this->loadData('restricted_classes*.php'); |
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 did create this method exactly to avoid the warning thrown by PHPCS about using include
. But I guess it is OK to break our own rules sometimes :)
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.
@svera the warning about include was skipped using phpcs:ignore
(that is preserved, but the actual rule that needs to be skipped is specified after refactoring)
It is my own PR so I cannot approve it |
@magento import pr to magento-commerce/magento-coding-standard |
@sivaschenko an error occurred during the Pull Request import. |
The new standard
Magento2Framework
and corresponding namespace containing tests applicable only for the framework testing are introduced.The rules extracted to the new standard: