Fix some rubocop style issues
authorTom Hughes <tom@compton.nu>
Fri, 20 Feb 2015 19:23:38 +0000 (19:23 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 20 Feb 2015 19:24:02 +0000 (19:24 +0000)
.rubocop.yml
.rubocop_todo.yml
cookbooks/planet/recipes/notes.rb [moved from cookbooks/planet/recipes/dump-notes.rb with 98% similarity]
roles/planetdump.rb

index 54dd4f7..1f5c531 100644 (file)
@@ -4,6 +4,13 @@ Style/AlignParameters:
   Exclude:
     - '**/metadata.rb'
 
+Style/FileName:
+  Exclude:
+    - 'cookbooks/trac/files/default/trac-authenticate'
+    - 'cookbooks/planet/files/default/replication-bin/replicate-changesets'
+    - 'hooks/*'
+    - 'roles/*.rb'
+
 Style/HashSyntax:
   EnforcedStyle: hash_rockets
 
index a6fa2af..d63b1da 100644 (file)
@@ -35,22 +35,11 @@ Metrics/PerceivedComplexity:
 Style/Documentation:
   Enabled: false
 
-# Offense count: 32
-# Configuration parameters: Exclude.
-Style/FileName:
-  Enabled: false
-
 # Offense count: 15
 # Configuration parameters: MaxLineLength.
 Style/IfUnlessModifier:
   Enabled: false
 
-# Offense count: 2
-# Cop supports --auto-correct.
-# Configuration parameters: EnforcedStyle, SupportedStyles.
-Style/MultilineOperationIndentation:
-  Enabled: false
-
 # Offense count: 29
 # Cop supports --auto-correct.
 Style/NumericLiterals:
similarity index 98%
rename from cookbooks/planet/recipes/dump-notes.rb
rename to cookbooks/planet/recipes/notes.rb
index ac2e073..728261c 100644 (file)
@@ -1,6 +1,6 @@
 #
 # Cookbook Name:: planet
-# Recipe:: dump
+# Recipe:: notes
 #
 # Copyright 2013, OpenStreetMap Foundation
 #
index 029e3a2..715a173 100644 (file)
@@ -3,5 +3,5 @@ description "Role applied to all planetdump servers"
 
 run_list(
   "recipe[planet::dump]",
-  "recipe[planet::dump-notes]"
+  "recipe[planet::notes]"
 )