VBT.Credo.Check.Readability.MultilineSimpleDo (vbt v0.1.0) View Source
This check has a base priority of high
and works with any version of Elixir.
Explanation
Avoid using multiline simple do expression.
# preferred
defp some_fun() do
%{
a: 1,
b: 2,
c: 3
}
end
# NOT preferred
defp some_fun(),
do: %{
a: 1,
b: 2,
c: 3
}
Configuration parameters
There are no specific parameters for this check.
Like with all checks, general params can be applied.
Parameters can be configured via the .credo.exs
config file.