X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/0e78061cdba5cfb3f299f57b7643d2b396ee235b..c6f551f50a2951ca5c73574f4d0a7266b170d670:/.rubocop.yml diff --git a/.rubocop.yml b/.rubocop.yml index 9b7a28d87..dc7590df3 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -4,9 +4,10 @@ require: - rubocop-minitest - rubocop-performance - rubocop-rails + - rubocop-rake AllCops: - TargetRubyVersion: 2.5 + TargetRubyVersion: 2.7 NewCops: enable Exclude: - 'vendor/**/*' @@ -54,7 +55,7 @@ Rails/HasManyOrHasOneDependent: Rails/HttpPositionalArguments: Enabled: false -Rails/InverseOf: +Rails/ReflectionClassName: Enabled: false Rails/SkipsModelValidations: @@ -95,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