rrrene / credo

A static code analysis tool for the Elixir language with a focus on code consistency and teaching.
http://credo-ci.org/
MIT License
4.94k stars 419 forks source link

Remove variable name clause for check that can't compile #1112

Closed novaugust closed 10 months ago

novaugust commented 10 months ago

This clause helped a test pass, but the test is made of code that can't compile

Interactive Elixir (1.15.7) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> defmodule CredoSampleModule do
...(1)>       def some_function(param, p2, p3) do
...(1)>         [someValue + v2 + v3 | {someValue} <- param, v2 <- p2, v3 <- p3]
...(1)>       end
...(1)>     end
error: misplaced operator |/2