]> git.openstreetmap.org Git - rails.git/blobdiff - .rubocop.yml
Allow moderators to hide diary entries and comments
[rails.git] / .rubocop.yml
index 24d57fb37cc0b354c71674e00c8a6f9671bbdf6b..d5ee8ff383722193f5769416d431faea2c3521c4 100644 (file)
@@ -1,5 +1,10 @@
 inherit_from: .rubocop_todo.yml
 
 inherit_from: .rubocop_todo.yml
 
+require: rubocop-performance
+
+AllCops:
+  TargetRubyVersion: 2.5
+
 Rails:
   Enabled: true
 
 Rails:
   Enabled: true
 
@@ -27,6 +32,9 @@ Rails/ApplicationRecord:
 Rails/CreateTableWithTimestamps:
   Enabled: false
 
 Rails/CreateTableWithTimestamps:
   Enabled: false
 
+Rails/FindEach:
+  Enabled: false
+
 Rails/HasManyOrHasOneDependent:
   Enabled: false
 
 Rails/HasManyOrHasOneDependent:
   Enabled: false
 
@@ -39,7 +47,7 @@ Rails/InverseOf:
 Rails/SkipsModelValidations:
   Exclude:
     - 'db/migrate/*.rb'
 Rails/SkipsModelValidations:
   Exclude:
     - 'db/migrate/*.rb'
-    - 'app/controllers/user_controller.rb'
+    - 'app/controllers/users_controller.rb'
 
 Style/BracesAroundHashParameters:
   EnforcedStyle: context_dependent
 
 Style/BracesAroundHashParameters:
   EnforcedStyle: context_dependent
@@ -50,10 +58,6 @@ Style/FormatStringToken:
 Style/IfInsideElse:
   Enabled: false
 
 Style/IfInsideElse:
   Enabled: false
 
-Style/GlobalVars:
-  Exclude:
-    - 'lib/quad_tile/extconf.rb'
-
 Style/GuardClause:
   Enabled: false
 
 Style/GuardClause:
   Enabled: false