class RuboCop::Cop::Chef::Deprecations::LocaleDeprecatedLcAllProperty

The local resource’s lc_all property has been deprecated and will be removed in Chef Infra Client 17

@example

#### incorrect
locale 'set locale' do
  lang 'en_gb.utf-8'
  lc_all 'en_gb.utf-8'
end

Constants

MSG

Public Instance Methods

on_block(node) click to toggle source
# 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