X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/cb4f99fef27bfe2269f688fd4d0a3f8ee0149de4..8c2d6cbed676aa23bc5361fa0e976c045c541196:/.rubocop.yml?ds=sidebyside diff --git a/.rubocop.yml b/.rubocop.yml index f8060f948..8b6ed0180 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -9,7 +9,7 @@ require: - rubocop-rake AllCops: - TargetRubyVersion: 3.0 + TargetRubyVersion: 3.1 NewCops: enable Exclude: - 'vendor/**/*' @@ -17,11 +17,6 @@ AllCops: Rails: Enabled: true -# Config can be removed after https://github.com/rubocop/rubocop-factory_bot/issues/53 -FactoryBot/AssociationStyle: - Include: - - 'test/factories/**/*' - Layout/ExtraSpacing: AllowForAlignment: true @@ -50,9 +45,16 @@ Naming/FileName: 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