config/enabled.yml in rubocop-0.55.0 vs config/enabled.yml in rubocop-0.56.0
- old
+ new
@@ -511,10 +511,14 @@
Lint/EnsureReturn:
Description: 'Do not use return in an ensure block.'
StyleGuide: '#no-return-ensure'
Enabled: true
+Lint/ErbNewArguments:
+ Description: 'Use `:trim_mode` and `:eoutvar` keyword arguments to `ERB.new`.'
+ Enabled: true
+
Lint/FloatOutOfRange:
Description: >-
Catches floating-point literals too large or small for Ruby to
represent.
Enabled: true
@@ -679,10 +683,14 @@
Description: >-
Do not use the same name as outer local variable
for block arguments or block local variables.
Enabled: true
+Lint/SplatKeywordArguments:
+ Description: 'Checks for use of splat keyword arguments as a single Hash.'
+ Enabled: true
+
Lint/StringConversionInInterpolation:
Description: 'Checks for Object#to_s usage in string interpolation.'
StyleGuide: '#no-to-s'
Enabled: true
@@ -981,10 +989,15 @@
# If enabled, this cop will warn about usages of
# `flatten` being called without any parameters.
# This can be dangerous since `flat_map` will only flatten 1 level, and
# `flatten` without any parameters can flatten multiple levels.
+Performance/InefficientHashSearch:
+ Description: 'Use `key?` or `value?` instead of `keys.include?` or `values.include?`'
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#hashkey-instead-of-hashkeysinclude-code'
+ Enabled: true
+
Performance/LstripRstrip:
Description: 'Use `strip` instead of `lstrip.rstrip`.'
Enabled: true
Performance/RangeInclude:
@@ -1099,19 +1112,17 @@
Rails/ApplicationRecord:
Description: 'Check that models subclass ApplicationRecord.'
Enabled: true
+Rails/AssertNot:
+ Description: 'Use `assert_not` instead of `assert !`.'
+ Enabled: true
+
Rails/Blank:
- Description: 'Enforce using `blank?` and `present?`.'
+ Description: 'Enforces use of `blank?`.'
Enabled: true
- # Convert checks for `nil` or `empty?` to `blank?`
- NilOrEmpty: true
- # Convert usages of not `present?` to `blank?`
- NotPresent: true
- # Convert usages of `unless` `present?` to `if` `blank?`
- UnlessPresent: true
Rails/CreateTableWithTimestamps:
Description: >-
Checks the migration for which timestamps are not included
when creating a new table.
@@ -1214,18 +1225,12 @@
Rails/Presence:
Description: 'Checks code that can be written more easily using `Object#presence` defined by Active Support.'
Enabled: true
Rails/Present:
- Description: 'Enforce using `blank?` and `present?`.'
+ Description: 'Enforces use of `present?`.'
Enabled: true
- NotNilAndNotEmpty: true
- # Convert checks for not `nil` and not `empty?` to `present?`
- NotBlank: true
- # Convert usages of not `blank?` to `present?`
- UnlessBlank: true
- # Convert usages of `unless` `blank?` to `if` `present?`
Rails/ReadWriteAttribute:
Description: >-
Checks for read_attribute(:attr) and
write_attribute(:attr, val).
@@ -1234,10 +1239,14 @@
Rails/RedundantReceiverInWithOptions:
Description: 'Checks for redundant receiver in `with_options`.'
Enabled: true
+Rails/RefuteMethods:
+ Description: 'Use `assert_not` methods instead of `refute` methods.'
+ Enabled: true
+
Rails/RelativeDateConstant:
Description: 'Do not assign relative date to constants.'
Enabled: true
Rails/RequestReferer:
@@ -1634,18 +1643,25 @@
Checks if the method definitions have or don't have
parentheses.
StyleGuide: '#method-parens'
Enabled: true
-Style/MethodMissing:
- Description: 'Avoid using `method_missing`.'
+Style/MethodMissingSuper:
+ Description: Checks for `method_missing` to call `super`.
StyleGuide: '#no-method-missing'
Enabled: true
Style/MinMax:
Description: >-
Use `Enumerable#minmax` instead of `Enumerable#min`
and `Enumerable#max` in conjunction.'
+ Enabled: true
+
+Style/MissingRespondToMissing:
+ Description: >-
+ Checks if `method_missing` is implemented
+ without implementing `respond_to_missing`.
+ StyleGuide: '#no-method-missing'
Enabled: true
Style/MixinGrouping:
Description: 'Checks for grouping of mixins in `class` and `module` bodies.'
StyleGuide: '#mixin-grouping'