rufo
rufo copied to clipboard
Heredoc argument alignment
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?