X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/c0c817b5429779e7bca1cb3958b7ad3e7d353c54..6f0477ee72cb9f2c780342413bd6314eacb22d22:/.rubocop.yml diff --git a/.rubocop.yml b/.rubocop.yml index 1c41c027a..dc7590df3 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -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,7 @@ Rails/HasManyOrHasOneDependent: Rails/HttpPositionalArguments: Enabled: false -Rails/InverseOf: +Rails/ReflectionClassName: Enabled: false Rails/SkipsModelValidations: @@ -65,7 +67,8 @@ Style/Documentation: Enabled: false Style/FormatStringToken: - EnforcedStyle: template + Exclude: + - 'config/routes.rb' Style/IfInsideElse: Enabled: false @@ -93,6 +96,12 @@ Style/MixinUsage: - 'bin/setup' - 'bin/update' +Style/RedundantCondition: + Exclude: + - 'app/controllers/messages_controller.rb' + - 'app/controllers/sessions_controller.rb' + - 'app/controllers/users_controller.rb' + Style/StringLiterals: EnforcedStyle: double_quotes