View Source Recode.Task.SinglePipe (Recode v0.7.2)

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.