class RuboCop::Cop::Chef::Effortless::CookbookUsesSearch

Search is not compatible with the Effortless Infra pattern

@example

#### incorrect
search(:node, 'run_list:recipe\[bacula\:\:server\]')

Constants

MSG
RESTRICT_ON_SEND

Public Instance Methods

on_send(node) click to toggle source
# File lib/rubocop/cop/chef/effortless/search_used.rb, line 33
def on_send(node)
  add_offense(node, message: MSG, severity: :refactor)
end