Sha256: 001e6a7286b9ad39b173c6824a59011b0ebc2544a9f04677a3d9ac5b637da366
Contents?: true
Size: 449 Bytes
Versions: 3
Compression:
Stored size: 449 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 if receiver.nil? && method_name == :eval add_offence(:warning, node.loc.selector, MSG) end super end end end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
rubocop-0.9.1 | lib/rubocop/cop/lint/eval.rb |
sabat-rubocop-0.9.0 | lib/rubocop/cop/lint/eval.rb |
rubocop-0.9.0 | lib/rubocop/cop/lint/eval.rb |