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

Heredoc argument alignment #254

Open
barunio opened this issue Jan 12, 2021 · 0 comments
Open

Heredoc argument alignment #254

barunio opened this issue Jan 12, 2021 · 0 comments

Comments

@barunio
Copy link

barunio commented Jan 12, 2021

Rufo allows for some flexibility regarding aligning call parameters, but does not allow for a common pattern when using heredocs. Specifically:

# This is allowed:
foo :arg1, :arg2,
  :arg3

# This is not allowed
foo :arg1, <<-TEXT
  blah
TEXT

# This is the preferred alignment (or starting the heredoc on a new line)
foo :arg1, <<-TEXT
      blah
    TEXT

The disallowed format is a common one that is in many cases easier to read. Is this restriction intentional?

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