Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
False positive for Consistency Warning #660
Credo version: 1.0.5
What were you trying to do?
I got the following code snippet in my project.
entries |> Stream.map(&json_library().encode!/1) |> Enum.join("\n")
No warning should be emitted.
A warning is emitted:
As it seems, Credo thinks the arity part is actually a division by 1 which leads to a consistency warning being emitted. All other mathematical operations in the project have a spaces around the operators.