Sha256: 50bba1e7fc57ad4afd9d9b78d7500b448333372f1b57b04043db43dd0db92a95
Contents?: true
Size: 493 Bytes
Versions: 23
Compression:
Stored size: 493 Bytes
Contents
module RuboCop module Cop module Paraxial class Send < Base MSG = '`send` causes remote code execution if called on user input.' def on_send(node) method_name = node.method_name return unless send_methods.include?(method_name) add_offense(node, message: format(MSG, method: method_name)) end private def send_methods [:send, :try, :__send__, :public_send] end end end end end
Version data entries
23 entries across 23 versions & 1 rubygems