config/rails.yml in rubocop-govuk-3.16.0 vs config/rails.yml in rubocop-govuk-3.17.0
- old
+ new
@@ -77,5 +77,18 @@
# the default, escaped output otherwise. At the time of writing,
# this Cop is disabled in a lot of repos, indicating it offers
# little value to many developers.
Rails/OutputSafety:
Enabled: false
+
+# We seldom check the return value of 'update' to see if
+# the operation was successful. Since we assume success, we
+# should raise an exception if this is not the case.
+Rails/SaveBang:
+ Enabled: true
+
+# We should avoid unnecessary ambiguity between 'Time.current'
+# and 'Time.zone.now', where 'Time.current' behaves differently
+# depending on application config. We should always be explicit
+# about whether we mean 'Time[.zone].now'.
+Rails/TimeZone:
+ EnforcedStyle: "strict"