lib/rubocop/cop/chef/modernize/macos_user_defaults.rb in cookstyle-6.11.4 vs lib/rubocop/cop/chef/modernize/macos_user_defaults.rb in cookstyle-6.12.6
- old
+ new
@@ -1,5 +1,6 @@
+# frozen_string_literal: true
#
# Copyright:: 2019, Chef Software, Inc.
# Author:: Tim Smith (<tsmith@chef.io>)
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -38,10 +39,10 @@
class MacOsXUserdefaults < Cop
extend TargetChefVersion
minimum_target_chef_version '14.0'
- MSG = 'The mac_os_x_userdefaults resource was renamed to macos_userdefaults when it was added to Chef Infra Client 14.0. The new resource name should be used.'.freeze
+ MSG = 'The mac_os_x_userdefaults resource was renamed to macos_userdefaults when it was added to Chef Infra Client 14.0. The new resource name should be used.'
def on_send(node)
add_offense(node, location: :expression, message: MSG, severity: :refactor) if node.method_name == :mac_os_x_userdefaults
end