Bug fixes
- #16147: Fix a false negative for
Lint/RedundantCopDisableDirectivewhen autocorrection shifts lines. (@koic) - #16104: Fix a false negative for
Style/FloatDivisionwith a trailing comment. (@a-lavis) - #16146: Fix a false positive for
Lint/RedundantCopDisableDirectivewith a repeated disable. (@koic) - #16176: Fix a false positive for
Style/RaiseArgswithEnforcedStyle: compactand constructor arguments. (@bbatsov) - #16183: Fix an error for
Layout/RescueEnsureAlignmentwith index or-assignment. (@koic) - #16158: Fix an error for
Style/NumericPredicatewith a predicate nested in the receiver of another. (@Starlexxx) - #16125: Fix an error for
Style/RedundantConditionwith a nested modifierif. (@koic) - #16175: Fix an incorrect autocorrect for
Layout/HashAlignmentwith multiple styles and pairs on one line. (@bbatsov) - #16139: Fix an incorrect autocorrect for
Layout/LineLengthwith code after a heredoc opener. (@koic) - #16160: Fix an incorrect autocorrect for
Layout/SingleLineBlockChainwithStyle/MapToSet. (@koic) - #16002: Fix an incorrect autocorrect for
Layout/SpaceBeforeBlockBraceswith a brace after a line continuation. (@Starlexxx) - #16175: Fix an incorrect autocorrect for
Layout/SpaceBeforeBlockBraceswith a brace after a heredoc body. (@bbatsov) - #16180: Fix an incorrect autocorrect for
Lint/InterpolationCheckin a split string. (@Starlexxx) - #16143: Fix an incorrect autocorrect for
Lint/ParenthesesAsGroupedExpressionwith a command call operand. (@koic) - #16170: Fix an incorrect autocorrect for
Lint/RedundantSplatExpansionwithArray.newas a method argument. (@wleeaf) - #16178: Fix an incorrect autocorrect for
Style/AndOrwith a binary operator method operand. (@bbatsov) - #16150: Fix an incorrect autocorrect for
Style/AndOrwith a command call that takes adoblock. (@Starlexxx) - #16178: Fix an incorrect autocorrect for
Style/AndOrwith a method chained onto a command call's do block. (@bbatsov) - #16178: Fix an incorrect autocorrect for
Style/AndOrwith a negated command call that takes a do block. (@bbatsov) - #16178: Fix an incorrect autocorrect for
Style/AndOrwith a pattern matching, ternary, range ordefined?operand. (@bbatsov) - #16178: Fix an incorrect autocorrect for
Style/AndOrwithsupercalled with arguments. (@bbatsov) - #16171: Fix an incorrect autocorrect for
Style/CaseEqualitywith a non-numeric range. (@wleeaf) - #16127: Fix an incorrect autocorrect for
Style/ClassAndModuleChildrenwithStyle/DataInheritance. (@koic) - #16154: Fix an incorrect autocorrect for
Style/EndlessMethodwith modifier cops. (@koic) - #16167: Fix an incorrect autocorrect for
Style/HashAsLastArrayItemwithLayout/MultilineArrayBraceLayout. (@Starlexxx) - #16126: Fix an incorrect autocorrect for
Style/HashLookupMethodwith forwarded or splatted arguments. (@koic) - #16163: Fix an incorrect autocorrect for
Style/MethodCallWithArgsParentheseswithLayout/HeredocArgumentClosingParenthesis. (@koic) - #16124: Fix an incorrect autocorrect for
Style/MethodDefParentheseswith a line continuation. (@koic) - #16159: Fix an incorrect autocorrect for
Style/ParenthesesAroundConditionwith a command call assignment. (@koic) - #16137: Fix an incorrect autocorrect for
Style/QuotedSymbolswith a trailing backslash. (@koic) - #16176: Fix an incorrect autocorrect for
Style/RaiseArgscompact style withe.classas the exception. (@bbatsov) - #16169: Fix an incorrect autocorrect for
Style/RaiseArgswith a heredoc message. (@Starlexxx) - #16132: Fix an incorrect autocorrect for
Style/RaiseArgswith a parenthesizedraise. (@koic) - #16136: Fix an incorrect autocorrect for
Style/ReduceToHashwith a heredoc. (@koic) - #16162: Fix an incorrect autocorrect for
Style/RedundantBeginwith a ternary branch. (@koic) - #16176: Fix an incorrect autocorrect for
Style/RedundantExceptionwith a heredoc in a multiline call. (@bbatsov) - #16177: Fix an incorrect autocorrect for
Style/SingleLineMethodswith code after the method'send. (@bbatsov) - #16157: Fix an incorrect autocorrect for
Style/StringConcatenationwhen joining parts forms an interpolation. (@Starlexxx) - #16161: Fix an incorrect autocorrect for
Style/TrailingCommaInArgumentswith argument forwarding. (@koic) - #16182: Fix an infinite loop for
Layout/EmptyLinesAfterModuleInclusionwith a logical operator. (@Starlexxx) - #16138: Fix an infinite loop for
Layout/EmptyLinesAroundClassBodywithLayout/IndentationWidth. (@koic) - #16142: Fix an infinite loop for
Layout/EndAlignmentwith a class or module assigned to a constant. (@Starlexxx) - #16128: Fix an infinite loop for
Layout/ExtraSpacingwithLayout/LineLength. (@koic) - #16148: Fix an infinite loop for
Layout/SpaceAroundOperatorswithLayout/LineContinuationSpacing. (@Starlexxx) - #16123: Fix an infinite loop for
Layout/SpaceAroundOperatorswith hash rockets aligned on non-adjacent lines. (@koic) - #16144: Fix an infinite loop for
Layout/SpaceInsideBlockBraceswithLayout/BlockAlignment. (@koic) - #16145: Fix an infinite loop for
Layout/SpaceInsideRangeLiteralwith a nested endless range. (@koic) - #15609: Fix an infinite loop and an incorrect autocorrect for
Style/EndlessMethodwhen the method definition itself has a modifierif/unless/while/untilor is followed byand/or/&&/||. (@Starlexxx) - #16153: Fix an infinite loop for
Style/RedundantBeginandStyle/IfUnlessModifierwithLayout/SpaceInsideParens. (@koic) - #16168: Fix false positives for
Lint/NestedPercentLiteralwhen a percent literal contains format sequences such as%-5sor%.2f. (@Vitalini) - #16149: Fix false positives in
Style/RedundantSelfwith a splat in multiple assignment. (@koic) - #16134: Fix
Layout/HashAlignmentdeleting a double splat before a pair on the same line. (@Starlexxx) - #14045: Warn about any obsolete configuration shipped by a plugin, naming the plugin and its file, instead of reporting a renamed cop against the user's
.rubocop.yml. (@ihamzatarar)