Class: RuboCop::Cop::Chef::ChefDeprecations::PartialSearchHelperUsage
- Inherits:
-
RuboCop::Cop
- Object
- RuboCop::Cop
- RuboCop::Cop::Chef::ChefDeprecations::PartialSearchHelperUsage
- Defined in:
- lib/rubocop/cop/chef/deprecation/partial_search_helper_usage.rb
Overview
Legacy partial_search usage should be updated to use :filter_result in the search helper instead
Constant Summary collapse
- MSG =
'Legacy partial_search usage should be updated to use :filter_result in the search helper instead'.freeze
Instance Method Summary collapse
Instance Method Details
#on_send(node) ⇒ Object
52 53 54 |
# File 'lib/rubocop/cop/chef/deprecation/partial_search_helper_usage.rb', line 52 def on_send(node) add_offense(node, location: :expression, message: MSG, severity: :refactor) if node.method_name == :partial_search end |