-
-
Notifications
You must be signed in to change notification settings - Fork 60
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
Ruleset::getIgnorePatterns(): add tests #705
Conversation
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.
Looks good to me!
The only comment I have is whether you considered adding exclude patterns with the type
attribute? Both with absolute
(the default value) and relative
.
As a sidenote not directly related to this PR, it seems PHPCS doesn't validate the value of the type
attribute, and users can pass any value. Maybe there should be some validation? Happy to create a separate issue for this if you agree.
This tests specifically targets the The handling of Still, I agree it's not a bad idea to have at least one explicit
Yes, please open an issue about about that. This PR series is purely about adding tests for the This PR series is not a review of the functionality of the The error handling change for #689, will also help for adding validation for the And yes, there are more places in the |
Yeah, I agree. Thanks for including one explicit absolute and one explicit relative pattern in the tests.
Here is the issue: #727 |
Suggested changelog entry
N/A
Related issues/external references
This PR is part of a series of PRs expanding the tests for the
Ruleset
class.