I’m currently following an Elixir tutorial and I have the following lines of code in my project:
Path.join([path, file]) |> File.read! |> split |> process(post)
When I run
mix format, it gets turned into this:
Path.join([path, file]) |> File.read!() |> split |> process(post)
I know this is a minor gripe, but I find it annoying/ugly that (optional) parentheses are added to
File.read!/1 but not
How can I configure
mix format not to add (optional) parentheses to functions with no/implicit arguments?
I am aware of the
import_deps: [...] and
locals_without_parens: [...] but could not figure out how to add
File.read! to these in a way that
mix format would accept.