lib/rubocop/cop/chef/modernize/systctl_param_resource.rb in cookstyle-6.11.4 vs lib/rubocop/cop/chef/modernize/systctl_param_resource.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"); @@ -34,10 +35,10 @@ include RuboCop::Chef::CookbookHelpers extend TargetChefVersion minimum_target_chef_version '14.0' - MSG = 'The sysctl_param resource was renamed to sysctl when it was added to Chef Infra Client 14.0. The new resource name should be used.'.freeze + MSG = 'The sysctl_param resource was renamed to sysctl 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 == :sysctl_param end