class RuboCop::Cop::Lint::FlipFlop

end
puts x if (x >= 5) && (x <= 10)
(1..20).each do |x|
# good
end
puts x if (x == 5) .. (x == 10)
(1..20).each do |x|
# bad
@example
See: bugs.ruby-lang.org/issues/5400<br>backported to Ruby 2.6.
the deprecation has been reverted by Ruby 2.7.0 and
flip-flop operator is deprecated in Ruby 2.6.0 and
Here is the history of flip-flops in Ruby.
based on the Ruby Style Guide.
Looks for uses of flip-flop operator

def on_eflipflop(node)

def on_eflipflop(node)
  add_offense(node)
end

def on_iflipflop(node)

def on_iflipflop(node)
  add_offense(node)
end