-
Notifications
You must be signed in to change notification settings - Fork 160
Directories in "dev/tests/" should be excluded from some static rules #80
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
Comments
Since this Coding Standard is used not by Magento core only, I would not add such exclude because it is tight to Magento2 codebase and does not make sense for extension developers. I suggest be more generic here. Will this work for your case?
@paliarush need your input here. |
This would then not apply to test framework code. However, it's not clear if test framework code should be held to all static tests or not. |
@lenaorobei Probably adding the exclusion you suggested would handle the majority of problems. Regarding test framework code, even if we did want to exclude some rules for that, it would most likely be different for the actual tests. And in that case maybe we could just be more accommodating of |
…-coding-standard-292 [Imported] Version 12 master update
Preconditions
magento-coding-standard v1.0.1
Steps to reproduce
dev/tests/*
that violates a rule like "Magento2.Exceptions.DirectThrow"Results
The
dev/tests/*
directories are not excluded, so all rules are applied, even if they are not necessary for test code.Exactly which rules should be excluded may be up for discussion, but I would assume the same exclusions for
*/Tests/*
would apply.The text was updated successfully, but these errors were encountered: