lib/rubocop/cop/style/slicing_with_range.rb in rubocop-1.29.0 vs lib/rubocop/cop/style/slicing_with_range.rb in rubocop-1.29.1
- old
+ new
@@ -25,9 +25,12 @@
#
# # good
# items[1..]
class SlicingWithRange < Base
extend AutoCorrector
+ extend TargetRubyVersion
+
+ minimum_target_ruby_version 2.6
MSG = 'Prefer ary[n..] over ary[n..-1].'
RESTRICT_ON_SEND = %i[[]].freeze
# @!method range_till_minus_one?(node)