New features
- #13936: Adds new cop
Style/ComparableBetween
. (@lovro-bikic) - #13943: Allow writing steep annotation to method definition for
Style/CommentedKeyword
. (@dak2)
Bug fixes
- #13969: Fix a false positive for
Lint/SharedMutableDefault
whencapacity
keyword argument is used. (@koic) - #13945: Fix a false positive for
Style/DoubleNegation
when callingdefine_method
/define_singleton_method
with a numblock. (@earlopain) - #13971: Fix false alarm for config obsoletion. (@koic)
- #13960: Fix a false negative for
Lint/ReturnInVoidContext
when returning out of a block. (@earlopain) - #13947: Fix a false negative for
Lint/UselessConstantScoping
for constants defined inclass << self
. (@earlopain) - #13949: Fix a false negative for
Lint/NonLocalExitFromIterator
with numblocks. (@earlopain) - #13975: Fix false positives for
Style/RedundantCurrentDirectoryInPath
when using a complex current directory path inrequire_relative
. (@koic) - #13963: Fix wrong autocorrect for
Lint/LiteralAsCondition
when the literal is followed byreturn
,break
, ornext
. (@earlopain) - #13946: Fix some false positives for
Style/MethodCallWithArgsParentheses
withEnforcedStyle: omit_parentheses
style and numblocks. (@earlopain) - #13950: Fix sporadic errors about
rubocop-rails
orrubocop-performance
extraction, even if they are already part of the Gemfile. (@earlopain) - #13981: Prevent redundant plugin loading when a duplicate plugin is specified in an inherited config. (@koic)
- #13965: Update
Lint/RedundantCopDisableDirective
to register an offense when cop names are given with improper casing. (@dvandersluis) - #13948: Fix wrong autocorrect for
Style/RescueModifier
when using parallel assignment and the right-hand-side is not a bracketed array. (@earlopain)
Changes
- #12851: Add
EnforcedStyleForClasses
andEnforcedStyleForModules
configuration options toStyle/ClassAndModuleChildren
. (@dvandersluis) - #13979: Add
Mode: conservative
configuration toStyle/FormatStringToken
to make the cop only register offenses for strings given toprintf
,sprintf
,format
, and%
. (@dvandersluis) - #13977: Allow
TLS1_1
andTLS1_2
by default inNaming/VariableNumber
to accommodate OpenSSL version parameter names. (@koic) - #13967: Make
Lint/RedundantTypeConversion
aware of redundantto_d
. (@koic)