New features
Bug fixes
- #15156: Fix an error for
Style/HashLookupMethodwhen chainingfetch(or[]) calls on the same expression. (@koic) - #15161: Fix an error for
Style/ReduceToHashwhen nestedeach_with_object/inject/reducecalls would build hashes. (@koic) - #15144: Fix an error in
Style/SoleNestedConditionalwhen autocorrecting nested conditionals containing comments. (@koic) - #15040: Exclude
constantsfromStyle/ModuleMemberExistenceCheck. (@t-daisuke) - #15155: Fix false negatives in
Style/RedundantSelfwhen an explicitselfreceiver in one scope matches the LHS of an||=,&&=, orop_asgnin another scope. (@koic) - #15107: Fix false positives in
Lint/RequireRelativeSelfPathwhen a non-.rbfile usesrequire_relativewith its own basename. (@koic) - #15137: Fix incorrect "does not support IndentationWidth parameter" warning for
Layout/ClosingParenthesisIndentationandLayout/CommentIndentation. (@koic) - #15148: Fix false positives in
Lint/RedundantSafeNavigationwhen safe navigation appears inrescueorensurebodies. (@koic) - #15147: Fix false positives in
Lint/RedundantSafeNavigationwhen safe navigation appears in the body ofunless. (@koic) - #15163: Fix false positives in
Style/CopyrightwhenNoticepattern starts with\A#, uses\smetacharacters, or has multiple spaces after#. (@koic) - #10179: Fix false positives in
Style/DocumentDynamicEvalDefinitionwhen the heredoc contains an escaped interpolation (\#{...}). (@eyupcanakman) - #15154: Fix bug where specifying
--outdisables parallelization. (@deivid-rodriguez) - #15106: Fix
TargetFinderto work correctly inside hidden parent directories. (@alpaca-tc) - #15102: Fix
FrozenErrorinDisabledConfigFormatterfor frozen array config parameters. (@koic) - #15141: Fix incorrect autocorrect for
Gemspec/RequireMFAcausing an infinite loop whenrubygems_mfa_requiredmetadata uses a symbol key. (@koic) - #15142: Fix infinite loop for
--disable-uncorrectableand offense near heredoc. (@jonas054) - #15054: Fix false positive for
Layout/MultilineMethodCallIndentationwhen a dot-aligned method chain is inside a hash pair value. (@nicolas-finary) - #15136: Fix false positive for
Lint/MissingCopEnableDirectivewhen# rubocop:disableis wrapped in a# rubocop:push/# rubocop:popblock. (@koic) - #15115: Fix an incorrect autocorrect in
Style/RegexpLiteralwhen the regexp contains unbalanced braces that conflict with the preferred%rdelimiters. (@koic) - #15130: Fix incorrect autocorrect in
Style/CopyrightwhenAutocorrectNoticelacks a#prefix orNoticepattern starts with^#. (@koic) - #14821: Fix
Style/IfInsideElseautocorrect moving comments into the wrong branch when a comment precedes the nestedifin anelse. (@hammadxcm) - #14583: Fix template extractor applying only the last fragment's autocorrection. (@zeronosu77108)
- #14971: Fix false positive for
Style/WhileUntilModifierwhen the body is a conditional. (@fujitanisora)