Skip to content
This repository has been archived by the owner on Apr 27, 2021. It is now read-only.

Indent assignment expressions with multi-line pipelines #65

Closed
rgreenjr opened this issue Aug 19, 2017 · 1 comment
Closed

Indent assignment expressions with multi-line pipelines #65

rgreenjr opened this issue Aug 19, 2017 · 1 comment

Comments

@rgreenjr
Copy link
Contributor

Feature Proposal

I've got this implemented. I'll issue a pull request if this proposal is approved.

Per the style guide, when assigning the result of a multi-line expression, the expression should begin on a new line.

# Bad
{found, not_found} = files
                     |> Enum.map(&Path.expand(&1, path))
                     |> Enum.partition(&File.exists?/1)


# Good
{found, not_found} =
  files
  |> Enum.map(&Path.expand(&1, path))
  |> Enum.partition(&File.exists?/1)
@lpil
Copy link
Owner

lpil commented Aug 19, 2017

Looks good, please open a PR :)

rgreenjr added a commit to rgreenjr/exfmt that referenced this issue Aug 19, 2017
@rgreenjr rgreenjr changed the title [Discussion] Indent assignment expressions with multi-line pipelines Indent assignment expressions with multi-line pipelines Aug 19, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants