credo icon indicating copy to clipboard operation
credo copied to clipboard

Add new check for one-arity functions in pipes

Open NickNeck opened this issue 3 years ago • 0 comments

Some style guides propose:

Use parentheses for one-arity functions when using the pipe operator (|>)

# not preferred
some_string |> String.downcase |> String.trim

# preferred
some_string |> String.downcase() |> String.trim()

This PR provides a check for that.

NickNeck avatar Nov 01 '21 19:11 NickNeck