]> git.openstreetmap.org Git - chef.git/commitdiff
Fix rubocop warnings
authorTom Hughes <tom@compton.nu>
Wed, 23 May 2018 09:52:01 +0000 (10:52 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 23 May 2018 09:52:01 +0000 (10:52 +0100)
.rubocop.yml
cookbooks/hardware/recipes/default.rb
cookbooks/kibana/recipes/default.rb
cookbooks/mediawiki/resources/site.rb

index 9d9ce40b0ac2f6b99f34911552a1f00b999a63e4..5823b51329c5539eb6ff6790245e971c41829046 100644 (file)
@@ -21,12 +21,18 @@ Naming/FileName:
     - 'hooks/*'
     - 'roles/*.rb'
 
+Naming/UncommunicativeMethodParamName:
+  Enabled: false
+
 Style/FrozenStringLiteralComment:
   EnforcedStyle: never
 
 Style/HashSyntax:
   EnforcedStyle: hash_rockets
 
+Style/IfUnlessModifier:
+  Enabled: false
+
 Style/StringLiterals:
   EnforcedStyle: double_quotes
 
index 56205f51d461e0181e56c0b1d61a2a7c58e833b4..17382e91664a36168f48fccfa46698de3e4c74eb 100644 (file)
@@ -83,7 +83,7 @@ end
 
 # Remove legacy HP G4 support which breaks modern hp-health 10.4
 if manufacturer == "HP"
-  %w[/opt/hp/hp-health/bin/hpasmd /usr/lib/libhpasmintrfc.so.3.0 %/usr/lib/libhpasmintrfc.so.3 /usr/lib/libhpasmintrfc.so].each do |filename|
+  %w[/opt/hp/hp-health/bin/hpasmd /usr/lib/libhpasmintrfc.so.3.0 /usr/lib/libhpasmintrfc.so.3 /usr/lib/libhpasmintrfc.so].each do |filename|
     file filename do
       action :delete
       manage_symlink_source false
index aecdfee86fb13032def3a59cf2a8d61ca53b3e4c..a3c8dc9f998e8bc441459cb24c78f2dca6be7dda 100644 (file)
@@ -83,7 +83,7 @@ node[:kibana][:sites].each do |name, details|
                         "elasticsearch_url" => details[:elasticsearch_url],
                         "pid_file" => "/var/run/kibana/#{name}.pid",
                         "log_file" => "/var/log/kibana/#{name}.log"
-    ))
+                      ))
     owner "root"
     group "root"
     mode 0o644
index 351ab9dcabed381d3e372d82b6669fdbe3fe81e4..7dc08f6f7e4a8ca56caebf1bc2926e251d6098fd 100644 (file)
@@ -128,7 +128,6 @@ action :create do
   ruby_block "catch-installer-localsettings-run" do
     action :run
     block do
-      #
     end
     not_if do
       ::File.exist?("#{mediawiki_directory}/LocalSettings-install.php")