Recode.Task.SinglePipe (Recode v0.8.0)
View SourcePipes (|>) 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.