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:
@@ -159,9 +159,6 @@ Rails/ReadWriteAttribute:
|
|||||||
Rails/RedundantReceiverInWithOptions:
|
Rails/RedundantReceiverInWithOptions:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
Rails/RelativeDateConstant:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Rails/RequestReferer:
|
Rails/RequestReferer:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
|
|||||||
@@ -59,6 +59,9 @@ Rails/ApplicationRecord:
|
|||||||
Rails/HttpPositionalArguments:
|
Rails/HttpPositionalArguments:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
|
Rails/RelativeDateConstant:
|
||||||
|
Enabled: true
|
||||||
|
|
||||||
RSpec/NotToNot:
|
RSpec/NotToNot:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user