config/upstream.yml in cookstyle-6.19.11 vs config/upstream.yml in cookstyle-6.20.1
- old
+ new
@@ -1544,10 +1544,17 @@
Lint/FormatParameterMismatch:
Description: 'The number of parameters to format/sprint must match the fields.'
Enabled: true
VersionAdded: '0.33'
+Lint/HashCompareByIdentity:
+ Description: 'Prefer using `Hash#compare_by_identity` than using `object_id` for keys.'
+ StyleGuide: '#identity-comparison'
+ Enabled: pending
+ Safe: false
+ VersionAdded: '0.93'
+
Lint/HeredocMethodCallPosition:
Description: >-
Checks for the ordering of a method call where
the receiver of the call is a HEREDOC.
Enabled: false
@@ -1744,10 +1751,25 @@
Lint/RedundantRequireStatement:
Description: 'Checks for unnecessary `require` statement.'
Enabled: true
VersionAdded: '0.76'
+Lint/RedundantSafeNavigation:
+ Description: 'Checks for redundant safe navigation calls.'
+ Enabled: pending
+ VersionAdded: '0.93'
+ Safe: false
+ IgnoredMethods:
+ - to_c
+ - to_f
+ - to_i
+ - to_r
+ - rationalize
+ - public_send
+ - send
+ - __send__
+
Lint/RedundantSplatExpansion:
Description: 'Checks for splat unnecessarily being called on literals.'
Enabled: true
VersionAdded: '0.76'
@@ -2699,9 +2721,19 @@
VersionAdded: '0.24'
EnforcedStyle: is_a?
SupportedStyles:
- is_a?
- kind_of?
+
+Style/ClassEqualityComparison:
+ Description: 'Enforces the use of `Object#instance_of?` instead of class comparison for equality.'
+ StyleGuide: '#instance-of-vs-class-comparison'
+ Enabled: pending
+ VersionAdded: '0.93'
+ IgnoredMethods:
+ - ==
+ - equal?
+ - eql?
Style/ClassMethods:
Description: 'Use self when defining module/class methods.'
StyleGuide: '#def-self-class-methods'
Enabled: true