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.
This commit is contained in:
Javi Martín
2024-03-02 01:22:19 +01:00
parent 77505db337
commit 86cf674d0c

View File

@@ -377,6 +377,9 @@ Rails/CreateTableWithTimestamps:
Rails/Date: Rails/Date:
Enabled: true Enabled: true
Rails/DeprecatedActiveModelErrorsMethods: # TODO: Remove after upgrading to Rails 7
Enabled: true
Rails/DurationArithmetic: Rails/DurationArithmetic:
Enabled: true Enabled: true