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

Do not place comments on the same line as the def keyword mishandling string interpolation #4970

Closed
johnnyshields opened this issue Oct 30, 2017 · 1 comment

Comments

@johnnyshields
Copy link

johnnyshields commented Oct 30, 2017

The hash in string interpolation is mistaken as a comment

# CASE 1
app/helpers/application_helper.rb:278:57: C: Do not place comments on the same line as the def keyword.
  def options_menu_item(option, key, url = send("redraw_#{controller.controller_name}_path"))
                                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

# CASE 2
lib/fat_free_crm/permissions.rb:54:15: C: Do not place comments on the same line as the def keyword.
          def #{model}_ids
              ^^^^^^^^^^^^
@mikegee
Copy link
Contributor

mikegee commented Oct 30, 2017

duplicate of #4886

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

No branches or pull requests

3 participants