Credo.Check.Warning.BoolOperationOnSameValues (Credo v1.5.2) View Source
This check has a base priority of high and works with any version of Elixir.
Explanation
Boolean operations with identical values on the left and right side are most probably a logical fallacy or a copy-and-paste error.
Examples:
x && x
x || x
x and x
x or xEach of these cases behaves the same as if you were just writing x.
Configuration parameters
There are no specific parameters for this check.
Like with all checks, general params can be applied.
Parameters can be configured via the .credo.exs config file.