Move Rails/Date and Rails/TimeZone to basic cops

Using Date.today and Time.now is a common mistake which might lead to
obscure bugs. Now we're making sure we'll receive a warning when a pull
request uses these methods.
This commit is contained in:
Javi Martín
2019-06-21 03:27:03 +02:00
parent c574a4d93a
commit a27ada662d
2 changed files with 6 additions and 6 deletions

View File

@@ -56,12 +56,18 @@ Rails/ApplicationJob:
Rails/ApplicationRecord:
Enabled: true
Rails/Date:
Enabled: true
Rails/HttpPositionalArguments:
Enabled: true
Rails/RelativeDateConstant:
Enabled: true
Rails/TimeZone:
Enabled: true
RSpec/NotToNot:
Enabled: true