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
undefined method `braces?' #6721
Comments
UPD: I just removed my rubocop.yml file and it works fine
|
UPD2: after removing
it works. Whats wrong with this cop? |
Thanks for reporting. Could you please show a minimum reproduce Ruby code? |
@alec-c4 if you run with It works after removing the above from your config because this way you effectively disable the cop that crashes - which is the |
and with -d key
|
From the S-expression, the offending node should correspond to an interpolated symbol: :"name_#{locale}" where |
yep, my code contains following construction I18n.available_locales.each do |locale|
validates_presence_of :"name_#{locale}"
end |
I was unable to reproduce the problem on latest |
rubocop crashes on run
Expected behavior
It works
Actual behavior
Steps to reproduce the problem
I just run rubocop on my project
RuboCop version
The text was updated successfully, but these errors were encountered: