Skip to content

Incorrect method argument alignment #7

@jpgeek

Description

@jpgeek

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions