View Source Quokka.Style.Defs (Quokka v2.4.1)
Styles function heads so that they're as small as possible.
The goal is that a function head fits on a single line.
This isn't a Credo issue, and the formatter is fine with either approach. But Quokka has opinions!
Ex:
This long declaration
def foo(%{
bar: baz
}) do
...
end
Becomes
def foo(%{bar: baz}) do
...
end
Summary
Functions
Callback implementation for Quokka.Style.run/2
.
Functions
Callback implementation for Quokka.Style.run/2
.