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

MemoizedInstanceVariableName cop suggests syntactically invalid instance variable for predicate methods. #5648

Closed
satyap opened this issue Mar 7, 2018 · 0 comments

Comments

@satyap
Copy link
Contributor

satyap commented Mar 7, 2018

MemoizedInstanceVariableName cop suggests syntactically invalid instance variable for predicate methods.

#5445 (comment)


Expected behavior

It should suggest replacing @has_something with @something

Actual behavior

Rubocop wants me to change the instance variable to @something?, which is not valid.

Steps to reproduce the problem

def something?
  @has_something ||= figure_out_something
end

RuboCop version

0.53.0

satyap pushed a commit to satyap/rubocop that referenced this issue Mar 7, 2018
pocke added a commit to pocke/rubocop that referenced this issue Mar 14, 2018
This was referenced Mar 21, 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

No branches or pull requests

1 participant