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

Incorrect method argument alignment #7

Open
jpgeek opened this issue Jun 6, 2024 · 0 comments
Open

Incorrect method argument alignment #7

jpgeek opened this issue Jun 6, 2024 · 0 comments

Comments

@jpgeek
Copy link

jpgeek commented Jun 6, 2024

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.

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

No branches or pull requests

1 participant