Skip to content

Commit

Permalink
Apply the linter to remove all the foodcritic exemption for the ones …
Browse files Browse the repository at this point in the history
…migrated to cookstyle: itchef/cookbooks/core/cpe_*

Differential Revision: D53077182

fbshipit-source-id: f05b808ac12936036cb589e9803d03dac7fb971d
  • Loading branch information
Olivier Raginel authored and facebook-github-bot committed Jan 27, 2024
1 parent aad7edf commit 0b3e77a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions itchef/cookbooks/cpe_chrome/resources/cpe_chrome_win.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand All @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion itchef/cookbooks/cpe_nomad/resources/darwin.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ~FC074
# rubocop:disable Chef/Modernize/DefaultActionFromInitialize
# Cookbook Name:: cpe_nomad
# Resources:: darwin
#
Expand Down
2 changes: 1 addition & 1 deletion itchef/cookbooks/cpe_remote/resources/file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion itchef/cookbooks/cpe_remote/resources/zip.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0b3e77a

Please sign in to comment.