lib/rubocop/cop/performance/delete_suffix.rb in rubocop-performance-1.8.1 vs lib/rubocop/cop/performance/delete_suffix.rb in rubocop-performance-1.9.0
- old
+ new
@@ -49,9 +49,10 @@
extend TargetRubyVersion
minimum_target_ruby_version 2.5
MSG = 'Use `%<prefer>s` instead of `%<current>s`.'
+ RESTRICT_ON_SEND = %i[gsub gsub! sub sub!].freeze
PREFERRED_METHODS = {
gsub: :delete_suffix,
gsub!: :delete_suffix!,
sub: :delete_suffix,