Class: RuboCop::Cop::Chef::Deprecations::LocaleDeprecatedLcAllProperty
- Includes:
- RuboCop::Chef::CookbookHelpers
- Defined in:
- lib/rubocop/cop/chef/deprecation/locale_lc_all_property.rb
Overview
The local resource’s lc_all property has been deprecated and will be removed in Chef Infra Client 17
Constant Summary collapse
- MSG =
"The local resource's lc_all property has been deprecated and will be removed in Chef Infra Client 17"
Instance Method Summary collapse
Methods included from RuboCop::Chef::CookbookHelpers
#match_property_in_resource?, #match_resource_type?, #method_arg_ast_to_string, #resource_block_name_if_string
Methods inherited from Base
Instance Method Details
#on_block(node) ⇒ Object
37 38 39 40 41 |
# File 'lib/rubocop/cop/chef/deprecation/locale_lc_all_property.rb', line 37 def on_block(node) match_property_in_resource?(:locale, 'lc_all', node) do |property| add_offense(property, severity: :warning) end end |