Move Rails/RelativeDateConstant to basic cops

The reason for this rule is similar to dynamic factories: we want
dynamic dates to be evaluted relative to the current time, and not
relative to the moment the application was loaded.
This commit is contained in:
Javi Martín
2019-06-22 22:19:23 +02:00
parent fc1a89e966
commit c2869f4887
2 changed files with 3 additions and 3 deletions

View File

@@ -159,9 +159,6 @@ Rails/ReadWriteAttribute:
Rails/RedundantReceiverInWithOptions:
Enabled: true
Rails/RelativeDateConstant:
Enabled: true
Rails/RequestReferer:
Enabled: true