Running `mix format --check-formatted` passes with success on the following 
code:

defmodule Example do
  @xs [
    1,
    2,
    3,
    4,
    5,
    6,
    7
  ]

  @other [
           1,
           2,
           3,
           4,
           5,
           6,
           7
         ]
         |> Enum.map(&(&1 * 2))
         |> Enum.reject(&(&1 < 5))
         |> length()

  @words ~w(
  ONE
  TWO
  THREE
  FOUR
  FIVE
  )
         |> Enum.filter(&String.contains?(&1, "F"))
end

I am wondering whether that is intended or if I should open an issue on 
Github and look into fixing it. 

`@words` does not seem to be formatted in the same way as `@other` which I 
would kinda expect and the formatting of `@words` looks kinda weird.

Secondly is there reason why when I pipe the module attribute that it gets 
intended differently than when I do not pipe it (compare @other with @xs)? 

Best regards,
Dario

-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elixir-lang-core+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/a1d30a3c-8fea-46f3-a688-71a83f9bd7adn%40googlegroups.com.

Reply via email to