lib/rubocop/cop/security/eval.rb in rubocop-1.10.0 vs lib/rubocop/cop/security/eval.rb in rubocop-1.11.0

- old
+ new

@@ -13,9 +13,10 @@ # binding.eval(something) class Eval < Base MSG = 'The use of `eval` is a serious security risk.' RESTRICT_ON_SEND = %i[eval].freeze + # @!method eval?(node) def_node_matcher :eval?, <<~PATTERN (send {nil? (send nil? :binding)} :eval $!str ...) PATTERN def on_send(node)