-
-
Notifications
You must be signed in to change notification settings - Fork 53
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
Some predicates return nil
#319
Comments
First, I'm also planning on adding Now there are a bunch of issues. I note that the doc of Overall, I'm seeing different cases, and I'd love input @rubocop/rubocop-core
Should we change |
That all sounds reasonable and well thought out to me. When I write patterns I tend to only use the
Given that it's capture form is not used I think it's probably a reasonable change. Of course the risk is if it's used in another one of the rubocop gems or a third party extension. Making it a breaking change sounds right to me. |
Very good point, I think it should
Would that warrant a major version upgrade for Rubocop itself? |
I'd say no given the breaking behaviour isn't used in core. |
Found by @dvandersluis in #317.
Unfortunately our specs don't catch these.
My plan:
def_node_predicate
to be used instead ofdef_node_matcher
where it makes senseThe text was updated successfully, but these errors were encountered: