X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/c24c2e481cc6d27e76274ed4e32668a4690a7788..fdd16b28dc3af1d4fd94562c9aae66a5d21d68b2:/.rubocop.yml diff --git a/.rubocop.yml b/.rubocop.yml index ac29f4fc8..dc7590df3 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -4,6 +4,7 @@ require: - rubocop-minitest - rubocop-performance - rubocop-rails + - rubocop-rake AllCops: TargetRubyVersion: 2.7 @@ -37,7 +38,6 @@ Metrics/ModuleLength: Naming/FileName: Exclude: - 'script/deliver-message' - - 'script/locale/reload-languages' - 'script/update-spam-blocks' Naming/MethodParameterName: @@ -55,7 +55,7 @@ Rails/HasManyOrHasOneDependent: Rails/HttpPositionalArguments: Enabled: false -Rails/InverseOf: +Rails/ReflectionClassName: Enabled: false Rails/SkipsModelValidations: @@ -96,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