X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/cdaebd22ebb8e0d28a614ec8792a28620569910f..cfe08d42d69a7233838cfee7874b1852cb2c3db6:/.rubocop.yml diff --git a/.rubocop.yml b/.rubocop.yml index 34605df1d..8b6ed0180 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,12 +1,16 @@ inherit_from: .rubocop_todo.yml require: + - rubocop-capybara + - rubocop-factory_bot - rubocop-minitest - rubocop-performance - rubocop-rails + - rubocop-rake AllCops: - TargetRubyVersion: 2.5 + TargetRubyVersion: 3.1 + NewCops: enable Exclude: - 'vendor/**/*' @@ -36,15 +40,21 @@ Metrics/ModuleLength: Naming/FileName: Exclude: - 'script/deliver-message' - - 'script/locale/reload-languages' - 'script/update-spam-blocks' Naming/MethodParameterName: Enabled: false +# This conflicts with Strong Migrations, which can't check `change_table` +Rails/BulkChangeTable: + Enabled: false + Rails/CreateTableWithTimestamps: Enabled: false +Rails/FindBy: + IgnoreWhereFirst: false + Rails/FindEach: Enabled: false @@ -54,7 +64,7 @@ Rails/HasManyOrHasOneDependent: Rails/HttpPositionalArguments: Enabled: false -Rails/InverseOf: +Rails/ReflectionClassName: Enabled: false Rails/SkipsModelValidations: @@ -66,7 +76,8 @@ Style/Documentation: Enabled: false Style/FormatStringToken: - EnforcedStyle: template + Exclude: + - 'config/routes.rb' Style/IfInsideElse: Enabled: false