]> git.openstreetmap.org Git - rails.git/commitdiff
Update rubocop configuration
authorTom Hughes <tom@compton.nu>
Fri, 28 Feb 2020 22:50:08 +0000 (22:50 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 28 Feb 2020 22:50:08 +0000 (22:50 +0000)
.rubocop.yml

index 77f26d863bf5b41a23ea4ca47540ab36eb21ff7c..1c41c027a68b40d4e79fb07f081cd891ae31a731 100644 (file)
@@ -61,9 +61,6 @@ Rails/SkipsModelValidations:
     - 'db/migrate/*.rb'
     - 'app/controllers/users_controller.rb'
 
-Style/BracesAroundHashParameters:
-  EnforcedStyle: context_dependent
-
 Style/Documentation:
   Enabled: false
 
@@ -76,12 +73,21 @@ Style/IfInsideElse:
 Style/GuardClause:
   Enabled: false
 
+Style/HashEachMethods:
+  Enabled: true
+
 Style/HashSyntax:
   EnforcedStyle: hash_rockets
   Exclude:
     - 'lib/tasks/testing.rake'
     - 'config/initializers/wrap_parameters.rb'
 
+Style/HashTransformKeys:
+  Enabled: true
+
+Style/HashTransformValues:
+  Enabled: true
+
 Style/MixinUsage:
   Exclude:
     - 'bin/setup'