Class: RuboCop::Cop::Chef::Deprecations::PartialSearchClassUsage
- Defined in:
 - lib/rubocop/cop/chef/deprecation/partial_search_class_usage.rb
 
Overview
Legacy Chef::PartialSearch class usage should be updated to use the ‘search` helper instead with the `filter_result` key.
Constant Summary collapse
- MSG =
 'Legacy Chef::PartialSearch class usage should be updated to use the search helper instead with the filter_result key.'- RESTRICT_ON_SEND =
 [:new].freeze
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#on_send(node) ⇒ Object
      58 59 60 61 62  | 
    
      # File 'lib/rubocop/cop/chef/deprecation/partial_search_class_usage.rb', line 58 def on_send(node) partial_search_class?(node) do add_offense(node, severity: :warning) end end  |