lib/rubocop/cop/performance/end_with.rb in rubocop-performance-1.11.5 vs lib/rubocop/cop/performance/end_with.rb in rubocop-performance-1.12.0

- old
+ new

@@ -7,9 +7,14 @@ # # This cop has `SafeMultiline` configuration option that `true` by default because # `end$` is unsafe as it will behave incompatible with `end_with?` # for receiver is multiline string. # + # @safety + # This will change to a new method call which isn't guaranteed to be on the + # object. Switching these methods has to be done with knowledge of the types + # of the variables which rubocop doesn't have. + # # @example # # bad # 'abc'.match?(/bc\Z/) # /bc\Z/.match?('abc') # 'abc' =~ /bc\Z/