]> git.openstreetmap.org Git - rails.git/blobdiff - .rubocop.yml
Skip intermediate lengths when testing tag validity
[rails.git] / .rubocop.yml
index 34605df1d8b821fe083d88b8caa07a3ea222562b..49fba1d0c64ac68501da202c0bad105599bdbe1f 100644 (file)
@@ -4,9 +4,11 @@ require:
   - rubocop-minitest
   - rubocop-performance
   - rubocop-rails
+  - rubocop-rake
 
 AllCops:
-  TargetRubyVersion: 2.5
+  TargetRubyVersion: 2.7
+  NewCops: enable
   Exclude:
     - 'vendor/**/*'
 
@@ -36,7 +38,6 @@ Metrics/ModuleLength:
 Naming/FileName:
   Exclude:
     - 'script/deliver-message'
-    - 'script/locale/reload-languages'
     - 'script/update-spam-blocks'
 
 Naming/MethodParameterName:
@@ -66,7 +67,8 @@ Style/Documentation:
   Enabled: false
 
 Style/FormatStringToken:
-  EnforcedStyle: template
+  Exclude:
+    - 'config/routes.rb'
 
 Style/IfInsideElse:
   Enabled: false