diff --git a/itchef/cookbooks/cpe_chrome/resources/cpe_chrome_win.rb b/itchef/cookbooks/cpe_chrome/resources/cpe_chrome_win.rb index 679591aa..ba63bf59 100755 --- a/itchef/cookbooks/cpe_chrome/resources/cpe_chrome_win.rb +++ b/itchef/cookbooks/cpe_chrome/resources/cpe_chrome_win.rb @@ -129,7 +129,7 @@ "#{prefix}\\Google\\Chrome", "#{prefix}\\Google\\Chrome\\Application", ].each do |dir| - directory dir do # rubocop:disable Chef/Meta/RequireOwnerGroupMode # ~FB024 + directory dir do # rubocop:disable Chef/Meta/RequireOwnerGroupMode rights :read, 'Everyone', :applies_to_children => true rights :read_execute, 'Users', :applies_to_children => true rights :full_control, ['Administrators', 'SYSTEM'], @@ -138,7 +138,7 @@ end end - file "create-#{pref_path}" do # rubocop:disable Chef/Meta/RequireOwnerGroupMode # ~FB023 + file "create-#{pref_path}" do # rubocop:disable Chef/Meta/RequireOwnerGroupMode not_if do node['cpe_chrome']['mp']['FileContents']. to_hash. diff --git a/itchef/cookbooks/cpe_nomad/resources/darwin.rb b/itchef/cookbooks/cpe_nomad/resources/darwin.rb index 717b482e..284e8c1e 100644 --- a/itchef/cookbooks/cpe_nomad/resources/darwin.rb +++ b/itchef/cookbooks/cpe_nomad/resources/darwin.rb @@ -1,4 +1,4 @@ -# ~FC074 +# rubocop:disable Chef/Modernize/DefaultActionFromInitialize # Cookbook Name:: cpe_nomad # Resources:: darwin # diff --git a/itchef/cookbooks/cpe_remote/resources/file.rb b/itchef/cookbooks/cpe_remote/resources/file.rb index 748d0f1f..0a937d5e 100644 --- a/itchef/cookbooks/cpe_remote/resources/file.rb +++ b/itchef/cookbooks/cpe_remote/resources/file.rb @@ -44,7 +44,7 @@ include CPE::Remote end -load_current_value do |desired| # ~FC006 +load_current_value do |desired| # rubocop:disable Chef/Correctness/ServiceResource path = desired.path if ::File.exist?(path) f_stat = ::File.stat(path) diff --git a/itchef/cookbooks/cpe_remote/resources/zip.rb b/itchef/cookbooks/cpe_remote/resources/zip.rb index 8d2c2c53..b74cad93 100644 --- a/itchef/cookbooks/cpe_remote/resources/zip.rb +++ b/itchef/cookbooks/cpe_remote/resources/zip.rb @@ -39,7 +39,7 @@ include CPE::Remote end -load_current_value do |desired| # ~FC006 +load_current_value do |desired| # rubocop:disable Chef/Correctness/ServiceResource chef_cache = Chef::Config[:file_cache_path] extra_loco = extract_location.delete(':') zip_path = ::File.join(chef_cache, 'remote_zip', extra_loco, zip_name)