-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
[Fix #184] Fix Node#parent_module_name
for sclass
nodes
#197
Conversation
There's a bit of a catch 22 between this PR and rubocop/rubocop#9994. Each PR needs the other to get the tests passing. |
Right. So either we merge this and reset the CI suite to test from the next version of RuboCop, or else we introduce some flag. Let me see how your additional tests fail with the previous code |
Yeah, no flag. So, short of introducing a list of tests that are ok to fail, I think the only way forward is:
All RuboCop PRs between step 3 and 4 will have their CI fail though. @dvandersluis do you see a better way? |
So like you said the problem is that this change will break existing tests in rubocop, even without the new tests, because the method return is going to be different. I'm good with removing rubocop 0.92 from the test suite, since I'm not really sure why we're running against a really old rubocop anyways? However, if we need it we can always add it back when done (or maybe a more recent version?). I think maybe a less disruptive path would be:
If we agree with this (and are good with both this and the rubocop PR, obviously) I can do all this quickly and sequentially for minimal disruption (the only thing I don't know how to do would be to release a new version of the gem). |
Ideally, projects with old versions of RuboCop (e.g. stuck with old versions of Ruby) can still run with newer
Indeed, marking the tests as pending is the way to go 👍 Let's do this. I'll be glad to make the release. If you create the PR to tweak the CI suite, don't forget to modify the |
…er to be able to cleanly merge rubocop/rubocop-ast#197.
@marcandre once #198 is merged, I'll rebase and merge this PR. |
e4e5931
to
9840add
Compare
@marcandre this is ready to be merged and released now. |
Released 1.9.1, thanks! 👍 |
Continuation of #177. I took @marcandre's tests and got them to pass. This fixes rubocop/rubocop#5022, but rubocop itself needs a PR as well because this change adds elements to the
parent_module_name
that it is not currently expecting.