vim-ruby icon indicating copy to clipboard operation
vim-ruby copied to clipboard

Incorrect method argument alignment

Open jpgeek opened this issue 1 year ago • 0 comments

First, thank you very much for writing this!

I get the following code indentation:

  redirect_to @foo,
    notice: 'Something'

The Ruby Style guide here method argument alignment says that arguments should be aligned with the end of the method name, so I would expect this:

  redirect_to @foo,
              notice: 'Something'

It works this way when using parentheses:

  redirect_to(@foo,
              notice: 'Something')

but the style guide recommends not using parentheses for dsl method calls , so using parentheses is not an option in these cases.

jpgeek avatar Jun 06 '24 01:06 jpgeek