From 86cf674d0c91cd58749e2d5cc9664cfe8ed5e281 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Sat, 2 Mar 2024 01:22:19 +0100 Subject: [PATCH] Add Rails/DeprecatedActiveModelErrorsMethods rule Even though we're already applying this rule since commit 08b12a78f, it's very useful to have it so we don't accidentally introduce code that won't work with Rails 7. After upgrading to Rails 7, this rule will no longer be necessary, since the code using the deprecated syntax will not work and so we'll notice it immediately. --- .rubocop.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.rubocop.yml b/.rubocop.yml index 3d64964eb..488cd99fe 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -377,6 +377,9 @@ Rails/CreateTableWithTimestamps: Rails/Date: Enabled: true +Rails/DeprecatedActiveModelErrorsMethods: # TODO: Remove after upgrading to Rails 7 + Enabled: true + Rails/DurationArithmetic: Enabled: true