Bug fixes
- #14469: Fix an incorrect autocorrect for
Style/BitwisePredicate
when using&
with LHS flags in conjunction with==
for comparisons. (@koic) - #14459: Fix wrong autocorrect for
Style/For
with save navigation in the collection. (@earlopain) - #14435: Fix false negatives for regexp cops when
Lint/DuplicateRegexpCharacterClassElement
is enabled. (@earlopain) - #14419: Fix false positives for
Lint/UselessAssignment
when duplicate assignments appear in nestedif
branches inside a loop and the variable is used outsidewhile
loop. (@koic) - #14468: Fix false positives for
Naming/MethodName
when an operator method is defined using a string. (@koic) - #14427: Fix false positives for
Style/RedundantParentheses
whendo
...end
block is wrapped in parentheses as a method argument. (@koic) - #14441: Better hash access handling in
Style/SafeNavigation
. (@issyl0) - #14443: Fix false positive in
Layout/EmptyLinesAfterModuleInclusion
wheninclude
does not have exactly one argument. (@issyl0) - #14424: Fix
Style/SafeNavigation
cop to preserve existing safe navigation in fixed code. (@martinemde) - #14455: Follow module inclusion with nonzero args with an empty line. (@issyl0)
- #14445: Fix false positives for
Lint/UselessAssignment
withfor
loops when the variable is referenced in the collection. (@earlopain) - #14447: Fix wrong autocorrect for
Style/RedundantCondition
with a parenthesised method call in the condition. (@earlopain)
Changes
- #14428: Enhance
Lint/SelfAssignment
to handle indexed assignment with multiple arguments. (@viralpraxis) - #14464: Exclude
AutoCorrect
andInclude
from configuration parameters. (@r7kamura) - #14472: Make
Style/RedundantBegin
aware ofcase
pattern matching. (@koic) - #14448: Register array intersection size checks as offenses under
Style/ArrayIntersect
. (@lovro-bikic) - #14431: Support LSP
TextDocumentSyncKind.Incremental
. (@tmtm) - #14453: Update
Style/RedundantBegin
to registerbegin
blocks insideif
,unless
,case
,while
anduntil
as redundant. (@dvandersluis)