-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
rubocop breaks code when "fixing" attr :name, true
#2483
Comments
There's not much documentation, but it looks like |
Indeed. I had not idea about this behaviour. We should fix this. |
I see that @weh has created an updated spec... but no code to actually make the spec pass. The two should go together. |
@weh, would you like to write the code to fix this one? |
yes, i was searching for a 24pullrequests issue to fix. |
sorry for the mess with the issue references. lesson learned :) |
Noticed one more issue in the code. And regarding the commit message - it should not end with |
@bbatsov, I like your thorough code reviews! |
Rubocop replaces
attr :name, true
with
attr_reader :name, true
which is plain wrong. If it would replace that line at all, it should use
attr_writer :name
instead.
The text was updated successfully, but these errors were encountered: