View Source Recode.Task.SinglePipe (Recode v0.6.5)
Pipes (|>
) should only be used when piping data through multiple calls.
# preferred
some_string |> String.downcase() |> String.trim()
Enum.reverse(some_enum)
# not preferred
some_enum |> Enum.reverse()
SinglePipe
does not change a single |>
that starts with a none zero arity
function.
# will not be changed
one(:a) |> two()
This task rewrites the code when mix recode
runs with autocorrect: true
.
Summary
Functions
Callback implementation for Recode.Task.init/1
.
Functions
Callback implementation for Recode.Task.init/1
.