Skip to content

Heredoc argument alignment #254

@barunio

Description

@barunio

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions