X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/9b3a3a12f52eb5e5ad9c55c4c864ff1c95bcd1f3..38b74c1c48521c3de988b774117d6f9febcf1c3f:/.rubocop.yml diff --git a/.rubocop.yml b/.rubocop.yml index 34605df1d..cfa31cc04 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,12 +1,15 @@ inherit_from: .rubocop_todo.yml require: + - rubocop-capybara - rubocop-minitest - rubocop-performance - rubocop-rails + - rubocop-rake AllCops: - TargetRubyVersion: 2.5 + TargetRubyVersion: 2.7 + NewCops: enable Exclude: - 'vendor/**/*' @@ -36,7 +39,6 @@ Metrics/ModuleLength: Naming/FileName: Exclude: - 'script/deliver-message' - - 'script/locale/reload-languages' - 'script/update-spam-blocks' Naming/MethodParameterName: @@ -54,7 +56,7 @@ Rails/HasManyOrHasOneDependent: Rails/HttpPositionalArguments: Enabled: false -Rails/InverseOf: +Rails/ReflectionClassName: Enabled: false Rails/SkipsModelValidations: @@ -66,7 +68,8 @@ Style/Documentation: Enabled: false Style/FormatStringToken: - EnforcedStyle: template + Exclude: + - 'config/routes.rb' Style/IfInsideElse: Enabled: false