X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/cdaebd22ebb8e0d28a614ec8792a28620569910f..04c697b468057d1a3604694e7ead9d2c6efd1dfa:/.rubocop.yml?ds=sidebyside diff --git a/.rubocop.yml b/.rubocop.yml index 34605df1d..5ffc61c41 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -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: @@ -54,7 +55,10 @@ Rails/HasManyOrHasOneDependent: Rails/HttpPositionalArguments: Enabled: false -Rails/InverseOf: +Rails/MigrationClassName: + Enabled: false + +Rails/ReflectionClassName: Enabled: false Rails/SkipsModelValidations: @@ -66,7 +70,8 @@ Style/Documentation: Enabled: false Style/FormatStringToken: - EnforcedStyle: template + Exclude: + - 'config/routes.rb' Style/IfInsideElse: Enabled: false