rufo icon indicating copy to clipboard operation
rufo copied to clipboard

Heredoc argument alignment

Open barunio opened this issue 4 years ago • 0 comments

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?

barunio avatar Jan 12 '21 21:01 barunio