diff --git a/docs/modules/ROOT/pages/cops_lint.adoc b/docs/modules/ROOT/pages/cops_lint.adoc index fbd2182b35a..8150cc2856d 100644 --- a/docs/modules/ROOT/pages/cops_lint.adoc +++ b/docs/modules/ROOT/pages/cops_lint.adoc @@ -1565,8 +1565,14 @@ end | - |=== -This cop looks for uses of flip-flop operator. -flip-flop operator is deprecated since Ruby 2.6.0. +This cop looks for uses of flip-flop operator +based on the Ruby Style Guide. + +Here is the history of flip-flops in Ruby. +flip-flop operator is deprecated in Ruby 2.6.0 and +the deprecation has been reverted by Ruby 2.7.0 and +backported to Ruby 2.6. +See: https://bugs.ruby-lang.org/issues/5400 === Examples diff --git a/lib/rubocop/cop/lint/flip_flop.rb b/lib/rubocop/cop/lint/flip_flop.rb index b928ca02968..73211b59257 100644 --- a/lib/rubocop/cop/lint/flip_flop.rb +++ b/lib/rubocop/cop/lint/flip_flop.rb @@ -3,8 +3,14 @@ module RuboCop module Cop module Lint - # This cop looks for uses of flip-flop operator. - # flip-flop operator is deprecated since Ruby 2.6.0. + # This cop looks for uses of flip-flop operator + # based on the Ruby Style Guide. + # + # Here is the history of flip-flops in Ruby. + # flip-flop operator is deprecated in Ruby 2.6.0 and + # the deprecation has been reverted by Ruby 2.7.0 and + # backported to Ruby 2.6. + # See: https://bugs.ruby-lang.org/issues/5400 # # @example # # bad