Skip to content
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

add specs for MemoizedInstanceVariableName #6125

Conversation

timoschilling
Copy link
Contributor

@timoschilling timoschilling commented Jul 24, 2018

Add a regression test for Naming/MemoizedInstanceVariableName with EnforcedStyleForLeadingUnderscores: disallowed, see #6084 (comment) and the following comments.

The manual says that it is ok if method name and variable name are the same, but thats not the case if the both are starting with a _.

With rubocop 0.57.2 this offence didn't happen.

@kenman345
Copy link
Contributor

Are you saying you want to add a definition that this is okay or that you think this is a bug and the spec will help show how we currently are aligned?

@timoschilling
Copy link
Contributor Author

@timoschilling
Copy link
Contributor Author

any updates on this?

@bbatsov
Copy link
Collaborator

bbatsov commented Aug 21, 2018

Sorry about the lack of responses. I'm on the road for a couple of weeks and I'm pretty short on time. I'll think more about this when I can.

In the mean time I'd defer to the @rubocop-hq/rubocop-core. :-)

Copy link

@Ruffeng Ruffeng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've been checking the issue and the PR. In my opinion, looks good to me @timoschilling. Do we know any update from @bbatsov about the topic?

@bbatsov bbatsov merged commit 11e4e65 into rubocop:master Sep 8, 2018
@bbatsov
Copy link
Collaborator

bbatsov commented Sep 8, 2018

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants