rubocop-rails.yml in gitlab-styles-5.4.0 vs rubocop-rails.yml in gitlab-styles-6.0.0
- old
+ new
@@ -22,10 +22,13 @@
# Check that models subclass ApplicationRecord.
Rails/ApplicationRecord:
Enabled: false
+Rails/AttributeDefaultBlockValue: # (new in 2.9)
+ Enabled: true
+
# Enforce using `blank?` and `present?`.
Rails/Blank:
Enabled: false
# Checks the correct usage of date aware methods, such as `Date.today`,
@@ -164,9 +167,12 @@
Rails/TimeZone:
Enabled: false
# This cop checks for the use of old-style attribute validation macros.
Rails/Validation:
+ Enabled: true
+
+Rails/WhereEquals: # (new in 2.9)
Enabled: true
# Enforces consistent style when using exists?.
# https://docs.rubocop.org/rubocop-rails/2.8/cops_rails.html#railswhereexists
Rails/WhereExists: