class RuboCop::Cop::Lint::MultipleComparison

In math and Python, we can use ‘x < y < z` style comparison to compare multiple value. However, we can’t use the comparison in Ruby. However, the comparison is not syntax error. This cop checks the bad usage of comparison operators.

@example

# bad
x < y < z
10 <= x <= 20

# good
x < y && y < z
10 <= x && x <= 20