Sha256: b795d16554ac4c1295db1988c271200882893a30f38989adbda4d18025a3af9c
Contents?: true
Size: 389 Bytes
Versions: 2
Compression:
Stored size: 389 Bytes
Contents
# encoding: utf-8 module Rubocop module Cop module Lint # This cop checks for the use of *Kernel#eval*. class Eval < Cop MSG = 'The use of eval is a serious security risk.' def on_send(node) receiver, method_name, = *node add_offense(node, :selector) if receiver.nil? && method_name == :eval end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubocop-0.19.1 | lib/rubocop/cop/lint/eval.rb |
rubocop-0.19.0 | lib/rubocop/cop/lint/eval.rb |