]> git.openstreetmap.org Git - rails.git/blobdiff - .rubocop.yml
Disable broken cop
[rails.git] / .rubocop.yml
index 1c41c027a68b40d4e79fb07f081cd891ae31a731..5ffc61c41274ef068d3d9d0d41696a0db16ea339 100644 (file)
@@ -1,11 +1,14 @@
 inherit_from: .rubocop_todo.yml
 
 require:
+  - rubocop-minitest
   - rubocop-performance
   - rubocop-rails
+  - rubocop-rake
 
 AllCops:
-  TargetRubyVersion: 2.5
+  TargetRubyVersion: 2.7
+  NewCops: enable
   Exclude:
     - 'vendor/**/*'
 
@@ -35,7 +38,6 @@ Metrics/ModuleLength:
 Naming/FileName:
   Exclude:
     - 'script/deliver-message'
-    - 'script/locale/reload-languages'
     - 'script/update-spam-blocks'
 
 Naming/MethodParameterName:
@@ -53,7 +55,10 @@ Rails/HasManyOrHasOneDependent:
 Rails/HttpPositionalArguments:
   Enabled: false
 
-Rails/InverseOf:
+Rails/MigrationClassName:
+  Enabled: false
+
+Rails/ReflectionClassName:
   Enabled: false
 
 Rails/SkipsModelValidations:
@@ -65,7 +70,8 @@ Style/Documentation:
   Enabled: false
 
 Style/FormatStringToken:
-  EnforcedStyle: template
+  Exclude:
+    - 'config/routes.rb'
 
 Style/IfInsideElse:
   Enabled: false