Update dependency rubocop to v1.92.0 #17

Merged
chvp merged 2 commits from renovate/rubocop-1.x-lockfile into main 2026-10-10 15:32:54 +02:00
Collaborator

This PR contains the following updates:

Package Change Age Confidence
rubocop (source, changelog) 1.91.0 → 1.92.0 age confidence

Release Notes

rubocop/rubocop (rubocop)

v1.92.0

Compare Source

New features
Bug fixes
  • #​15780: Fix an error for Lint/MissingCopEnableDirective when an enable-next or next +Cop directive suspends an open rubocop:disable, and a false positive for next -Cop scopes larger than MaxRangeSize. ([@​bbatsov][])
  • #​16005: Fix a false negative for Security/JSONLoad with create_additions as the second argument. ([@​bbatsov][])
  • #​15994: Fix a false positive for Layout/LineEndStringConcatenationIndentation with an already aligned part. ([@​bbatsov][])
  • #​15842: Fix a false positive for Style/ExplicitBlockArgument when the method uses argument forwarding (...). ([@​bbatsov][])
  • #​15843: Fix a false positive for Style/NegativeArrayIndex with a different length receiver. ([@​bbatsov][])
  • #​15841: Fix a false positive for Style/RedundantFreeze with an arithmetic operation on a non-numeric receiver. ([@​bbatsov][])
  • #​15843: Fix a false positive for Style/Sample with an endless range, which was corrected to a sample call of the wrong size. ([@​bbatsov][])
  • #​15842: Fix a false positive for Style/SuperArguments when the method has a destructuring parameter. ([@​bbatsov][])
  • #​15740: Fix an error for Layout/EmptyLinesAroundMethodBody when a method's arguments span multiple lines and the method ends on the last argument's line. ([@​viralpraxis][])
  • #​15860: Fix an error for Layout/HeredocIndentation with a heredoc nested in another heredoc. ([@​Starlexxx][])
  • #​15876: Fix an error for Lint/EmptyConditionalBody with else on the condition line. ([@​koic][])
  • #​16008: Fix an error for Lint/UnescapedBracketInRegexp when using regexp_parser 2.11.2 and earlier. ([@​bbatsov][])
  • #​15897: Fix an error for Metrics/ClassLength with a long singleton class in LSP mode. ([@​bbatsov][])
  • #​15749: Fix an error for Style/ClassAndModuleChildren when a compact class or module definition appears in an expression, such as an assignment value or a method argument. ([@​viralpraxis][])
  • #​15750: Fix an error for Style/ClassAndModuleChildren when using EnforcedStyle: compact and the nested body is indented less than Layout/IndentationWidth's Width. ([@​viralpraxis][])
  • #​15764: Fix an error for Style/ClassAndModuleChildren when EnforcedStyle: compact compacts an irregularly indented definition and Layout/IndentationStyle enforces tabs. ([@​viralpraxis][])
  • #​15946: Fix an error for Style/ExplicitBlockArgument with the shorthand call syntax. ([@​Starlexxx][])
  • #​15861: Fix an error for Style/FormatString with format nested in format. ([@​Starlexxx][])
  • #​15694: Fix an error for Style/HashSyntax when a no_mixed_keys style forces hash rockets on a hash whose value repeats its key. ([@​viralpraxis][])
  • #​16007: Fix an error for Style/IfInsideElse when the nested if shares a line with other code. ([@​bbatsov][])
  • #​15867: Fix an error for Style/MapIntoArray when pushing into a numbered or it block parameter. ([@​Starlexxx][])
  • #​15949: Fix an error for Style/Next with a modifier condition wrapping a block that has its own offense. ([@​Starlexxx][])
  • #​15797: Fix an error for Style/RedundantCondition when autocorrecting a redundant condition nested in the else branch of another one. ([@​koic][])
  • #​15928: Fix an error for Style/Semicolon when a semicolon follows an unparenthesized keyword parameter or hash pattern. ([@​viralpraxis][])
  • #​15714: Fix an error for Style/YodaCondition when one operand of a comparison contains another comparison the cop also corrects. ([@​viralpraxis][])
  • #​16011: Fix an error for the pacman formatter, which crashed with undefined method 'winsize' whether or not the output was a terminal. ([@​bbatsov][])
  • #​15731: Fix an error when caching offenses whose correction or justification cannot be represented as UTF-8. ([@​viralpraxis][])
  • #​16015: Fix an error when cleaning up a result cache that can't be written. ([@​bbatsov][])
  • #​15702: Fix an error when interrupting RuboCop with Ctrl-C. ([@​viralpraxis][])
  • #​16015: Fix an error when the cache directory or config can't be accessed under a sandbox. ([@​bbatsov][])
  • #​16015: Fix an error when the result cache directory exists but can't be written. ([@​bbatsov][])
  • #​15817: Fix an incorrect autocorrect for Gemspec/OrderedDependencies when the same dependency declaration appears more than once in the gemspec. ([@​viralpraxis][])
  • #​15903: Fix an incorrect autocorrect for Layout/ClassStructure with blank line cops. ([@​koic][])
  • #​15984: Fix an incorrect autocorrect for Layout/ClassStructure with Layout/EmptyLinesAroundAccessModifier. ([@​koic][])
  • #​15997: Fix an incorrect autocorrect for Layout/ClassStructure with a heredoc constant. ([@​bbatsov][])
  • #​15697: Fix an incorrect autocorrect for Layout/EmptyLinesAroundBlockBody when using EnforcedStyle: empty_lines and the empty line would precede a leading dot method call. ([@​viralpraxis][])
  • #​15953: Fix an incorrect autocorrect for Layout/EmptyLinesAroundBlockBody with do on its own line. ([@​koic][])
  • #​15818: Fix an incorrect autocorrect for Layout/ExtraSpacing cop with ForceEqualSignAlignment: true when Style/SelfAssignment rewrites the same assignment. ([@​Starlexxx][])
  • #​15997: Fix an incorrect autocorrect for Layout/FirstArgumentIndentation with an inner call not beginning its line. ([@​bbatsov][])
  • #​15904: Fix an incorrect autocorrect for Layout/FirstMethodArgumentLineBreak with Style/MethodCallWithArgsParentheses. ([@​koic][])
  • #​15875: Fix an incorrect autocorrect for Layout/FirstMethodParameterLineBreak with Style/MethodDefParentheses. ([@​koic][])
  • #​15793: Fix an incorrect autocorrect for Layout/LineContinuationSpacing cop when a line ends with the $\ global variable. ([@​Starlexxx][])
  • #​15656: Fix an incorrect autocorrect for Layout/LineLength when breaking a line after an argument with a nested heredoc. ([@​Starlexxx][])
  • #​15844: Fix an incorrect autocorrect for Layout/LineLength cop when Style/MethodCallWithArgsParentheses with EnforcedStyle: omit_parentheses removes the parentheses it breaks after. ([@​Starlexxx][])
  • #​15813: Fix an incorrect autocorrect for Layout/LineLength when SplitStrings: true would split a string inside an escape sequence such as \000. ([@​koic][])
  • #​15777: Fix an incorrect autocorrect for Layout/LineLength with SplitStrings: true when an interpolation in the string contains a block. ([@​Starlexxx][])
  • #​15997: Fix an incorrect autocorrect for Layout/LineLength with SplitStrings and a string not beginning its line. ([@​bbatsov][])
  • #​15964: Fix an incorrect autocorrect for Layout/MultilineArrayBraceLayout with Layout/MultilineHashBraceLayout and Layout/MultilineMethodCallBraceLayout. ([@​koic][])
  • #​15966: Fix an incorrect autocorrect for Layout/MultilineArrayBraceLayout with Style/ConcatArrayLiterals. ([@​koic][])
  • #​15789: Fix an incorrect autocorrect for Layout/MultilineBlockLayout cop adding a trailing comma when the only positional block argument is followed by keyword arguments. ([@​Starlexxx][])
  • #​15955: Fix an incorrect autocorrect for Layout/MultilineBlockLayout with block argument rewriting cops. ([@​koic][])
  • #​15932: Fix an incorrect autocorrect for Layout/MultilineHashBraceLayout with Style/HashAsLastArrayItem and Style/RedundantDoubleSplatHashBraces. ([@​koic][])
  • #​15906: Fix an incorrect autocorrect for Layout/MultilineArrayLineBreaks, Layout/MultilineHashKeyLineBreaks, Layout/MultilineMethodArgumentLineBreaks and Layout/MultilineMethodParameterLineBreaks after a heredoc opener. ([@​koic][])
  • #​15748: Fix an incorrect autocorrect for Layout/MultilineMethodCallBraceLayout when EnforcedStyle: omit_parentheses of Style/MethodCallWithArgsParentheses removes the parentheses the layout cop is moving. ([@​koic][])
  • #​15870: Fix an incorrect autocorrect for Layout/MultilineMethodDefinitionBraceLayout with Style/MultilineMethodSignature. ([@​Starlexxx][])
  • #​15967: Fix an incorrect autocorrect for Layout/SingleLineBlockChain with Style/NilComparison. ([@​koic][])
  • #​15988: Fix an incorrect autocorrect for Layout/SingleLineBlockChain with Style/FloatDivision. ([@​koic][])
  • #​15865: Fix an incorrect autocorrect for Layout/SingleLineBlockChain with a heredoc. ([@​Starlexxx][])
  • #​15735: Fix an incorrect autocorrect for Layout/SpaceInsideBlockBraces with EnforcedStyle: no_space when a multiline block's last line has code before the closing bracket. ([@​viralpraxis][])
  • #​15838: Fix an incorrect autocorrect for Lint/AmbiguousOperator with Style/ArgumentsForwarding. ([@​bbatsov][])
  • #​15913: Fix an incorrect autocorrect for Lint/EmptyConditionalBody with an empty elsif and else. ([@​koic][])
  • #​15971: Fix an incorrect autocorrect for Lint/LiteralInInterpolation with a # next to the interpolation. ([@​koic][])
  • #​15999: Fix an incorrect autocorrect for Lint/LiteralInInterpolation with an empty literal after a #. ([@​bbatsov][])
  • #​16004: Fix an incorrect autocorrect for Lint/LiteralInInterpolation with two adjacent interpolations. ([@​bbatsov][])
  • #​15795: Fix an incorrect autocorrect for Lint/Loop when begin ... end while or begin ... end until is written on a single line. ([@​koic][])
  • #​15889: Fix an incorrect autocorrect for Lint/NumberConversion with a symbol operand of an operator. ([@​koic][])
  • #​15934: Fix an incorrect autocorrect for Lint/RedundantDirGlobSort with a leading dot. ([@​koic][])
  • #​16007: Fix an incorrect autocorrect for Lint/UnescapedBracketInRegexp with a double-quoted Regexp.new string. ([@​bbatsov][])
  • #​16007: Fix an incorrect autocorrect for Lint/UnescapedBracketInRegexp with an escaped Regexp.new string. ([@​bbatsov][])
  • #​15838: Fix an incorrect autocorrect for Lint/UselessAssignment with a list of values without brackets. ([@​bbatsov][])
  • #​15796: Fix an incorrect autocorrect for Lint/Void when removing a heredoc in void context, so that its body and terminator are removed with it. ([@​koic][])
  • #​15832: Fix an incorrect autocorrect for Layout/MultilineArrayBraceLayout, Layout/MultilineHashBraceLayout, Layout/MultilineMethodCallBraceLayout, and Layout/MultilineMethodDefinitionBraceLayout when a heredoc is opened on the line of the closing brace. ([@​koic][])
  • #​15952: Fix an incorrect autocorrect for Naming/HeredocDelimiterCase when the body has the corrected delimiter. ([@​koic][])
  • #​15800: Fix an incorrect autocorrect for Style/AccessModifierDeclarations with a splatted variable. ([@​koic][])
  • #​15801: Fix an incorrect autocorrect for Style/Alias when a symbol argument such as :"foo bar" or :@type has no bareword form. ([@​koic][])
  • #​15991: Fix an incorrect autocorrect for Style/AndOr with Style/ReturnNilInPredicateMethodDefinition. ([@​Starlexxx][])
  • #​15962: Fix an incorrect autocorrect for Style/ArgumentsForwarding adding parentheses twice to a method definition. ([@​Starlexxx][])
  • #​15893: Fix an incorrect autocorrect for Style/ArgumentsForwarding with a block literal. ([@​koic][])
  • #​15843: Fix an incorrect autocorrect for Style/Attr with parenthesized arguments. ([@​bbatsov][])
  • #​15727: Fix an incorrect autocorrect for Style/BlockDelimiters when a braces block is the collection of a for loop. ([@​viralpraxis][])
  • #​15758: Fix an incorrect autocorrect for Style/BlockDelimiters when Style/MethodCallWithArgsParentheses with EnforcedStyle: omit_parentheses removes the call's parentheses in the same pass, producing invalid code such as foo :bar { baz }. ([@​viralpraxis][])
  • #​15838: Fix an incorrect autocorrect for Style/BlockDelimiters with a block in a loop condition. ([@​bbatsov][])
  • #​15842: Fix an incorrect autocorrect for Style/BlockDelimiters with a multiline block in an argument of yield or super without parentheses. ([@​bbatsov][])
  • #​15975: Fix an incorrect autocorrect for Style/BlockDelimiters with a heredoc after rescue. ([@​koic][])
  • #​15747: Fix an incorrect autocorrect for Style/BlockDelimiters with Layout/SpaceBeforeBlockBraces. ([@​koic][])
  • #​15840: Fix an incorrect autocorrect for Style/CaseLikeIf with an if inside the else branch. ([@​bbatsov][])
  • #​15730: Fix an incorrect autocorrect for Style/ClassAndModuleChildren with EnforcedStyle: compact when a one-liner child class has a superclass or a body. ([@​viralpraxis][])
  • #​15961: Fix an incorrect autocorrect for Style/ClassAndModuleChildren when compacting a nested definition. ([@​Starlexxx][])
  • #​15943: Fix an incorrect autocorrect for Style/ClassAndModuleChildren with Style/StructInheritance. ([@​koic][])
  • #​15744: Fix an incorrect autocorrect for Style/ClassMethodsDefinitions when a method definition inside class << self is followed by other code on its last line. ([@​viralpraxis][])
  • #​15922: Fix an incorrect autocorrect for Style/CombinableLoops when followed by another block. ([@​Starlexxx][])
  • #​15996: Fix an incorrect autocorrect for Style/CombinableLoops when one of the loops is disabled. ([@​bbatsov][])
  • #​16006: Fix an incorrect autocorrect for Style/CombinableLoops with comments after the loop's opening. ([@​bbatsov][])
  • #​16006: Fix an incorrect autocorrect for Style/CombinableLoops with comments before the closing delimiter. ([@​bbatsov][])
  • #​15987: Fix an incorrect autocorrect for Style/CombinableLoops with mixed block delimiters. ([@​koic][])
  • #​15996: Fix an incorrect autocorrect for Style/CombinableLoops with numbered and it parameters. ([@​bbatsov][])
  • #​15878: Fix an incorrect autocorrect for Style/CombinableLoops with rescue in a loop body. ([@​koic][])
  • #​16004: Fix an incorrect autocorrect for Style/ConcatArrayLiterals dropping comments. ([@​bbatsov][])
  • #​15834: Fix an incorrect autocorrect for Style/ConcatArrayLiterals with Style/MethodCallWithArgsParentheses. ([@​koic][])
  • #​15881: Fix an incorrect autocorrect for Style/ConcatArrayLiterals with Style/TrailingCommaInArguments. ([@​koic][])
  • #​15999: Fix an incorrect autocorrect for Style/ConcatArrayLiterals with multiline array arguments. ([@​bbatsov][])
  • #​15773: Fix an incorrect autocorrect for Style/ConditionalAssignment with EnforcedStyle: assign_inside_condition when Style/MethodCallWithArgsParentheses with EnforcedStyle: omit_parentheses removes a branch body's parentheses in the same pass, producing invalid code such as foo << bar :baz. ([@​viralpraxis][])
  • #​15863: Fix an incorrect autocorrect for Style/EmptyLiteral when Hash[] or Hash([]) is the first argument of a method call without parentheses. ([@​kevin9327][])
  • #​15689: Fix an incorrect autocorrect for Style/EndlessMethod when a method is made endless while Style/MethodCallWithArgsParentheses omits parentheses in its body. ([@​viralpraxis][])
  • #​16014: Fix an incorrect autocorrect for Style/EndlessMethod and Style/SingleLineMethods with a one-line pattern match or begin...end while body. ([@​bbatsov][])
  • #​15715: Fix an incorrect autocorrect for Style/EndlessMethod when the method body ends with an anonymous argument forwarding. ([@​viralpraxis][])
  • #​15710: Fix an incorrect autocorrect for Style/EndlessMethod when the method body passes a multiline or xstring heredoc to a method call. ([@​viralpraxis][])
  • #​15716: Fix an incorrect autocorrect for Style/EndlessMethod when the method body is a multiple assignment. ([@​viralpraxis][])
  • #​15707: Fix an incorrect autocorrect for Style/EndlessMethod when the method body ends with an omitted hash value. ([@​viralpraxis][])
  • #​15831: Fix an incorrect autocorrect for Style/EndlessMethod with a command that an endless body cannot hold. ([@​koic][])
  • #​15815: Fix an incorrect autocorrect for Style/EndlessMethod deleting a comment placed between the method signature and end. ([@​koic][])
  • #​15992: Fix an incorrect autocorrect for Style/EndlessMethod with a modifier condition or and/or body. ([@​Starlexxx][])
  • #​15775: Fix an incorrect autocorrect for Style/EndlessMethod when Naming/BlockForwarding or Style/ArgumentsForwarding adds parentheses to the same method definition. ([@​Starlexxx][])
  • #​15842: Fix an incorrect autocorrect for Style/EndlessMethod and Style/SingleLineMethods when the method body assigns multiple values without brackets. ([@​bbatsov][])
  • #​15756: Fix an incorrect autocorrect for Style/EndlessMethod when the method parameters are not surrounded by parentheses. ([@​koic][])
  • #​15843: Fix an incorrect autocorrect for Style/ExactRegexpMatch when the result is used. ([@​bbatsov][])
  • #​15790: Fix an incorrect autocorrect for Style/ExplicitBlockArgument cop when the method already has an argument or local variable named block. ([@​Starlexxx][])
  • #​15963: Fix an incorrect autocorrect for Style/ExplicitBlockArgument with Style/LambdaCall. ([@​koic][])
  • #​15965: Fix an incorrect autocorrect for Style/ExplicitBlockArgument with Style/TrailingCommaInArguments. ([@​koic][])
  • #​15998: Fix an incorrect autocorrect for Style/ExplicitBlockArgument with an empty index call. ([@​bbatsov][])
  • #​15842: Fix an incorrect autocorrect for Style/ExplicitBlockArgument when super without arguments is called in a method with keyword or block parameters. ([@​bbatsov][])
  • #​15977: Fix an incorrect autocorrect for Style/FloatDivision with a leading dot. ([@​koic][])
  • #​15768: Fix an incorrect autocorrect for Style/For when EnforcedStyle: for and the block body abuts a brace, such as c.each {d}, which left do or end glued to the body. ([@​viralpraxis][])
  • #​15765: Fix an incorrect autocorrect for Style/For when EnforcedStyle: for and the multiline each block is delimited by braces. ([@​viralpraxis][])
  • #​15911: Fix an incorrect autocorrect for Style/For with a do...end block in the collection. ([@​koic][])
  • #​15838: Fix an incorrect autocorrect for Style/For with a non-local loop variable or an implicit block parameter. ([@​bbatsov][])
  • #​15882: Fix an incorrect autocorrect for Style/For with Style/RedundantBegin. ([@​koic][])
  • #​15970: Fix an incorrect autocorrect for Style/FormatString with a braced hash argument. ([@​koic][])
  • #​15842: Fix an incorrect autocorrect for Style/FormatString when the argument of String#% is an instance variable, a constant or another value that may be an array. ([@​bbatsov][])
  • #​15799: Fix an incorrect autocorrect for Style/FrozenStringLiteralComment when an encoding magic comment names an encoding other than UTF-8, so that the frozen string literal comment is inserted below it. ([@​koic][])
  • #​15840: Fix an incorrect autocorrect for Style/GuardClause with an if as the body of an endless method. ([@​bbatsov][])
  • #​15998: Fix an incorrect autocorrect for Style/HashConversion in an index, setter or operator call. ([@​bbatsov][])
  • #​15998: Fix an incorrect autocorrect for Style/HashConversion when calling a method on Hash[]. ([@​bbatsov][])
  • #​15973: Fix an incorrect autocorrect for Style/HashConversion with Style/MethodCallWithArgsParentheses. ([@​koic][])
  • #​15998: Fix an incorrect autocorrect for Style/HashConversion with a method chain argument. ([@​bbatsov][])
  • #​15998: Fix an incorrect autocorrect for Style/HashConversion with safe navigation, super or yield. ([@​bbatsov][])
  • #​15698: Fix an incorrect autocorrect for Style/HashLookupMethod when the lookup is the target of a compound assignment. ([@​viralpraxis][])
  • #​15951: Fix an incorrect autocorrect for Style/HashLookupMethod with a leading dot. ([@​koic][])
  • #​15944: Fix an incorrect autocorrect for Style/HashLookupMethod with an explicit element reference call. ([@​koic][])
  • #​15772: Fix an incorrect autocorrect for Style/HashSyntax with EnforcedStyle: hash_rockets where expanding an omitted hash value also removed the line break that followed it. ([@​viralpraxis][])
  • #​15862: Fix an incorrect autocorrect for Style/HashSyntax with Style/MethodCallWithArgsParentheses. ([@​Starlexxx][])
  • #​15972: Fix an incorrect autocorrect for Style/HashSyntax with Style/SuperWithArgsParentheses. ([@​koic][])
  • #​15879: Fix an incorrect autocorrect for Style/HashSyntax with a keyword-named shorthand value. ([@​koic][])
  • #​15869: Fix an incorrect autocorrect for Style/IdenticalConditionalBranches when a duplicated expression shares its line. ([@​koic][])
  • #​16007: Fix an incorrect autocorrect for Style/IfInsideElse with a modifier if on the else line. ([@​bbatsov][])
  • #​15840: Fix an incorrect autocorrect for Style/IfUnlessModifierOfIfUnless with Style/SoleNestedConditional. ([@​bbatsov][])
  • #​16000: Fix an incorrect autocorrect for Style/IfUnlessModifier with a heredoc inside another heredoc. ([@​bbatsov][])
  • #​15979: Fix an incorrect autocorrect for Style/IfUnlessModifier with a heredoc nested in the body. ([@​koic][])
  • #​15840: Fix an incorrect autocorrect for Style/IfUnlessModifier and Style/WhileUntilModifier with a conditional or loop in a call argument, ternary branch or endless method body. ([@​bbatsov][])
  • #​15907: Fix an incorrect autocorrect for Style/IfUnlessModifier with an omitted hash value in a return or an assignment. ([@​koic][])
  • #​15852: Fix an incorrect autocorrect for Style/IfWithSemicolon when if is the receiver of a method call or an operand of an operator. ([@​koic][])
  • #​15854: Fix an incorrect autocorrect for Style/IfWithSemicolon when a branch is a begin/end loop with a while or until modifier. ([@​koic][])
  • #​15850: Fix an incorrect autocorrect for Style/IfWithSemicolon when ! is applied to a method call with unparenthesized arguments. ([@​koic][])
  • #​15839: Fix an incorrect autocorrect for Style/IfWithSemicolon when the condition or a branch binds looser than the ternary operator. ([@​bbatsov][])
  • #​15941: Fix an incorrect autocorrect for Style/InverseMethods with an operand of an operator. ([@​koic][])
  • #​15708: Fix an incorrect autocorrect for Style/ItBlockParameter when using EnforcedStyle: always and the block parameter is used inside a nested block. ([@​viralpraxis][])
  • #​15954: Fix an incorrect autocorrect for Style/ItBlockParameter with Style/StabbyLambdaParentheses. ([@​koic][])
  • #​15859: Fix an incorrect autocorrect for Style/ItBlockParameter with Style/Lambda. ([@​Starlexxx][])
  • #​15912: Fix an incorrect autocorrect for Style/KeywordParametersOrder with trailing whitespace. ([@​koic][])
  • #​15718: Fix an incorrect autocorrect for Style/Lambda when a lambda literal has an argument whose default value needs parentheses between pipes. ([@​viralpraxis][])
  • #​15986: Fix an incorrect autocorrect for Style/LambdaCall with a heredoc argument. ([@​Starlexxx][])
  • #​15978: Fix an incorrect autocorrect for Style/Lambda with a lambda literal in a pattern. ([@​koic][])
  • #​15887: Fix an incorrect autocorrect for Style/Lambda with rescue in an unparenthesized argument. ([@​koic][])
  • #​15826: Fix an incorrect autocorrect for Style/MethodCallWithArgsParentheses when Style/TernaryParentheses also parenthesizes the arguments of a ternary condition. ([@​koic][])
  • #​15812: Fix an incorrect autocorrect for Style/MethodCallWithArgsParentheses with EnforcedStyle: omit_parentheses when Style/AndOr rewrites the and/or keyword around an argument-bearing call in the same pass. ([@​koic][])
  • #​15833: Fix an incorrect autocorrect for Style/MethodCallWithArgsParentheses when Style/RedundantParentheses removes the parentheses around a call whose own parentheses are omitted in the same pass. ([@​koic][])
  • #​15824: Fix an incorrect autocorrect for Style/MethodCallWithArgsParentheses with EnforcedStyle: omit_parentheses when a call is assigned before the and or or keyword. ([@​koic][])
  • #​15905: Fix an incorrect autocorrect for Style/MethodCallWithArgsParentheses with a closing parenthesis on its own line. ([@​koic][])
  • #​15974: Fix an incorrect autocorrect for Style/MethodCallWithArgsParentheses with a nested call at the end of the line. ([@​koic][])
  • #​15999: Fix an incorrect autocorrect for Style/MethodCallWithArgsParentheses with a comment after (. ([@​bbatsov][])
  • #​4524: Fix an incorrect autocorrect for Style/MethodCallWithoutArgsParentheses when a local variable has the same name. ([@​bbatsov][])
  • #​15696: Fix an incorrect autocorrect for Style/MethodDefParentheses when using EnforcedStyle: require_no_parentheses and the parameters begin on a line below the method name. ([@​viralpraxis][])
  • #​15888: Fix an incorrect autocorrect for Style/MethodDefParentheses with a destructured first parameter. ([@​koic][])
  • #​15914: Fix an incorrect autocorrect for Style/MethodDefParentheses with a single-line method body. ([@​koic][])
  • #​16000: Fix an incorrect autocorrect for Style/MultilineIfModifier with a heredoc opened on the modifier line. ([@​bbatsov][])
  • #​16006: Fix an incorrect autocorrect for Style/MultilineIfModifier with a multiline string in the body. ([@​bbatsov][])
  • #​16006: Fix an incorrect autocorrect for Style/MultilineIfModifier with a non-squiggly heredoc in the body. ([@​bbatsov][])
  • #​15969: Fix an incorrect autocorrect for Style/MultilineInPatternThen with an endless range pattern. ([@​Starlexxx][])
  • #​15848: Fix an incorrect autocorrect for Style/MultilineTernaryOperator with defined? without parentheses. ([@​koic][])
  • #​15839: Fix an incorrect autocorrect for Style/MultilineTernaryOperator with yield and super. ([@​bbatsov][])
  • #​15969: Fix an incorrect autocorrect for Style/MultilineWhenThen with an endless range condition. ([@​Starlexxx][])
  • #​15902: Fix an incorrect autocorrect for Style/MutableConstant with Recursive: true and trailing comma cops. ([@​koic][])
  • #​15840: Fix an incorrect autocorrect for Style/NegatedIfElseCondition with then or a semicolon after the condition. ([@​bbatsov][])
  • #​15840: Fix an incorrect autocorrect for Style/NestedModifier with low-precedence operands. ([@​bbatsov][])
  • #​15839: Fix an incorrect autocorrect for Style/NestedTernaryOperator when the ternary follows return or is a command argument, or when the if branch has parentheses that do not wrap all of it. ([@​bbatsov][])
  • #​15864: Fix an incorrect autocorrect for Style/NestedTernaryOperator with a heredoc. ([@​Starlexxx][])
  • #​15847: Fix an incorrect autocorrect for Style/NestedTernaryOperator when the ternary is the operand of not or defined? without parentheses. ([@​koic][])
  • #​15841: Fix an incorrect autocorrect for Style/Next with heredocs and multiline string literals. ([@​bbatsov][])
  • #​15830: Fix an incorrect autocorrect for Style/NilComparison when a method is called on nil?. ([@​koic][])
  • #​15960: Fix an incorrect autocorrect for Style/NilComparison with a leading dot. ([@​koic][])
  • #​15806: Fix an incorrect autocorrect for Style/NonNilCheck when the receiver is a unary operation, such as !a != nil. ([@​viralpraxis][])
  • #​15827: Fix an incorrect autocorrect for Style/Not with a unary ~ operand. ([@​koic][])
  • #​15807: Fix an incorrect autocorrect for Style/NumericPredicate when the receiver is a unary operation, such as -a < 0. ([@​viralpraxis][])
  • #​15886: Fix an incorrect autocorrect for Style/NumericPredicate with EnforcedStyle: comparison in an operand. ([@​koic][])
  • #​15849: Fix an incorrect autocorrect for Style/OneLineConditional with a post-condition loop branch. ([@​koic][])
  • #​15851: Fix an incorrect autocorrect for Style/OneLineConditional with a constant scope or a ternary condition. ([@​koic][])
  • #​15839: Fix an incorrect autocorrect for Style/OneLineConditional when a branch uses a modifier rescue/while/until or a one-line pattern match, or when the conditional is the receiver of a method call. ([@​bbatsov][])
  • #​15843: Fix an incorrect autocorrect for Style/PercentLiteralDelimiters with an escaped delimiter. ([@​bbatsov][])
  • #​15835: Fix an incorrect autocorrect for Style/ReduceToHash with a key or a value that is not an array element. ([@​koic][])
  • #​15841: Fix an incorrect autocorrect for Style/RedundantBegin with low precedence statements and multiline return values. ([@​bbatsov][])
  • #​15841: Fix an incorrect autocorrect for Style/RedundantCondition with a low precedence else branch. ([@​bbatsov][])
  • #​15841: Fix an incorrect autocorrect for Style/RedundantCondition with operator method branches. ([@​bbatsov][])
  • #​15909: Fix an incorrect autocorrect for Style/RedundantDoubleSplatHashBraces with Style/TrailingCommaInHashLiteral. ([@​koic][])
  • #​15841: Fix an incorrect autocorrect for Style/RedundantException with a compound message. ([@​bbatsov][])
  • #​15663: Fix an incorrect autocorrect for Style/RedundantFetchBlock when fetch is called with a splat, an anonymous rest argument, or keyword arguments. ([@​ihamzatarar][])
  • #​15811: Fix an incorrect autocorrect for Style/RedundantParentheses with a heredoc and a chained call. ([@​koic][])
  • #​15825: Fix an incorrect autocorrect for Style/RedundantParentheses with a heredoc opened on the closing parenthesis line. ([@​koic][])
  • #​15798: Fix an incorrect autocorrect for Style/RedundantRegexpArgument with an escaped #{. ([@​koic][])
  • #​15843: Fix an incorrect autocorrect for Style/RedundantRegexpConstructor with an ambiguous slash regexp. ([@​bbatsov][])
  • #​15810: Fix an incorrect autocorrect for Style/RedundantRegexpEscape cop when Style/RegexpLiteral changes the delimiters of the same regexp in the same pass. ([@​Starlexxx][])
  • #​15819: Fix an incorrect autocorrect for Style/RegexpLiteral when a %r literal whose body starts with a newline is passed to a method without parentheses. ([@​koic][])
  • #​15809: Fix an incorrect autocorrect for Style/RegexpLiteral with a slash inside an interpolation. ([@​koic][])
  • #​15823: Fix an incorrect autocorrect for Style/RegexpLiteral when a %r literal escapes its own delimiter in the body. ([@​koic][])
  • #​15993: Fix an incorrect autocorrect for Style/RequireOrder with a require sharing its line. ([@​Starlexxx][])
  • #​15843: Fix an incorrect autocorrect for Style/RescueModifier with a nested heredoc. ([@​bbatsov][])
  • #​15991: Fix an incorrect autocorrect for Style/ReturnNilInPredicateMethodDefinition with return as an operand of ||. ([@​Starlexxx][])
  • #​16014: Fix an incorrect autocorrect for Style/ReturnNilInPredicateMethodDefinition with return in a ternary branch. ([@​bbatsov][])
  • #​15877: Fix an incorrect autocorrect for Style/ReturnNil with an operand return. ([@​koic][])
  • #​15842: Fix an incorrect autocorrect for Style/SingleLineMethods with Style/EndlessMethod when the method body is an and/or operation, a multiple assignment or an assignment of a command call. ([@​bbatsov][])
  • #​15916: Fix an incorrect autocorrect for Style/SingleLineMethods with unparenthesized parameters. ([@​koic][])
  • #​15737: Fix an incorrect autocorrect for Style/StabbyLambdaParentheses when using EnforcedStyle: require_no_parentheses and a lambda argument has a default value containing a brace, such as ->(x = {}). ([@​viralpraxis][])
  • #​15744: Fix an incorrect autocorrect for Style/StabbyLambdaParentheses when using EnforcedStyle: require_no_parentheses and a line break or comment separates the parentheses from the arguments. ([@​viralpraxis][])
  • #​15899: Fix an incorrect autocorrect for Style/StringConcatenation with quotes in an interpolated percent literal. ([@​Starlexxx][])
  • #​15999: Fix an incorrect autocorrect for Style/SymbolProc with a lambda literal in a pattern. ([@​bbatsov][])
  • #​15839: Fix an incorrect autocorrect for Style/TernaryParentheses with a condition binding looser than ?:. ([@​bbatsov][])
  • #​15838: Fix an incorrect autocorrect for Style/TrailingUnderscoreVariable with a nested group of underscores or a bracketless list of values. ([@​bbatsov][])
  • #​15840: Fix an incorrect autocorrect for Style/WhileUntilModifier with a begin block body. ([@​bbatsov][])
  • #​15883: Fix an incorrect autocorrect for Style/YodaExpression with a splat argument. ([@​koic][])
  • #​15754: Fix an infinite loop between Layout/EmptyLinesAroundBlockBody, Layout/EmptyLinesAroundClassBody or Layout/EmptyLinesAroundModuleBody with EnforcedStyle: empty_lines and a cop indenting the same end, such as Layout/BlockAlignment or Layout/EndAlignment. ([@​viralpraxis][])
  • #​15845: Fix an infinite loop for Layout/BlockAlignment with Layout/IndentationStyle enforcing tabs when end is already indented like the line the block starts on. ([@​viralpraxis][])
  • #​15792: Fix an infinite loop for Layout/BlockAlignment with Layout/IndentationStyle enforcing tabs. ([@​koic][])
  • #​15778: Fix an infinite loop for Layout/CaseIndentation with Layout/IndentationStyle enforcing tabs. ([@​viralpraxis][])
  • #​15837: Fix an infinite loop for Layout/DefEndAlignment with a single-line def after a line continuation. ([@​bbatsov][])
  • #​15910: Fix an infinite loop for Layout/EmptyLineAfterMultilineCondition with a modifier while. ([@​koic][])
  • #​15985: Fix an infinite loop for Layout/EmptyLineAfterMultilineCondition with a body on the condition line. ([@​koic][])
  • #​15892: Fix an infinite loop for Layout/EmptyLinesAroundAttributeAccessor with code on the same line. ([@​koic][])
  • #​15814: Fix an infinite loop for Layout/EmptyLinesAroundExceptionHandlingKeywords with an empty clause. ([@​koic][])
  • #​15820: Fix an infinite loop for Layout/EndAlignment with EnforcedStyleAlignWith: variable. ([@​koic][])
  • #​15759: Fix an infinite loop for Layout/ExtraSpacing with an assignment behind a comparison. ([@​koic][])
  • #​15980: Fix an infinite loop for Layout/FirstArgumentIndentation with a method chain beginning its line. ([@​koic][])
  • #​15857: Fix an infinite loop for Layout/FirstHashElementIndentation when Layout/HashAlignment uses the separator style and a key spans several lines. ([@​koic][])
  • #​15821: Fix an infinite loop for Layout/HashAlignment with a key spanning multiple lines. ([@​koic][])
  • #​15901: Fix an infinite loop for Layout/HeredocArgumentClosingParenthesis with a heredoc in a block argument. ([@​koic][])
  • #​15693: Fix an infinite loop for Layout/IndentationStyle when using EnforcedStyle: tabs and a line is aligned with spaces following the indenting tab. ([@​viralpraxis][])
  • #​15958: Fix an infinite loop for Layout/IndentationWidth with an inline access modifier and outdent access modifier style. ([@​Starlexxx][])
  • #​15925: Fix an infinite loop for Layout/LineEndStringConcatenationIndentation with a long run of misaligned parts. ([@​Starlexxx][])
  • #​15787: Fix an infinite loop for Layout/LineLength cop with SplitStrings: true when the limit falls right after a string's opening quote. ([@​Starlexxx][])
  • #​15982: Fix an infinite loop for Layout/LineLength with a string starting past the limit. ([@​koic][])
  • #​15791: Fix an infinite loop for Layout/LineLength with a string starting with an interpolation. ([@​koic][])
  • #​15981: Fix an infinite loop for Layout/RedundantLineBreak with offenses sharing a line. ([@​koic][])
  • #​15769: Fix an infinite loop for Layout/RescueEnsureAlignment with Layout/IndentationStyle enforcing tabs. ([@​koic][])
  • #​15763: Fix an infinite loop between Layout/SpaceAroundBlockParameters, Layout/SpaceInsideParens and Layout/ExtraSpacing when both cops require a space inside a lambda's parameter parentheses. ([@​viralpraxis][])
  • #​15874: Fix an infinite loop for Layout/SpaceAroundBlockParameters with a trailing comma. ([@​koic][])
  • #​15997: Fix an infinite loop for Layout/SpaceInsideArrayLiteralBrackets with EnforcedStyle: compact. ([@​bbatsov][])
  • #​15719: Fix an infinite loop for Layout/SpaceInsideBlockBraces when using EnforcedStyle: no_space and a multiline block's closing brace is not preceded by a space. ([@​viralpraxis][])
  • #​15722: Fix false positives in Layout/SpaceInsideBlockBraces with EnforcedStyle: no_space when a multiline block without block parameters has a line break after the opening brace. ([@​viralpraxis][])
  • #​15983: Fix an infinite loop for Layout/SpaceInsideBlockBraces with a comment after the left brace. ([@​koic][])
  • #​15816: Fix an infinite loop for Layout/SpaceInsideBlockBraces with Layout/BlockAlignment when a leading-dot chained block has its closing brace on its own line. ([@​viralpraxis][])
  • #​15837: Fix an infinite loop for Lint/AmbiguousOperatorPrecedence with an operator method called with a dot. ([@​bbatsov][])
  • #​15880: Fix an infinite loop for Lint/LiteralInInterpolation with Layout/SpaceInsideStringInterpolation. ([@​koic][])
  • #​15837: Fix an infinite loop for Lint/LiteralInInterpolation with an ideographic space at the end of a heredoc line. ([@​bbatsov][])
  • #​15837: Fix an infinite loop for Style/EmptyMethod with a multiline argument. ([@​bbatsov][])
  • #​15738: Fix an infinite loop for Style/EndlessMethod when tab indentation or a trailing comment puts the endless method definition over Layout/LineLength. ([@​viralpraxis][])
  • #​15956: Fix an infinite loop for Style/EndlessMethod with Layout/SpaceInsideParens adding spaces to new parentheses. ([@​Starlexxx][])
  • #​15950: Fix an infinite loop for Style/HashLookupMethod with Style/FetchEnvVar. ([@​koic][])
  • #​15894: Fix an infinite loop for Style/MethodCallWithArgsParentheses with anonymous rest arguments forwarding. ([@​koic][])
  • #​15755: Fix an infinite loop for Style/MultilineMethodSignature when a method definition is preceded by other code on the same line, such as private def, and joining the signature would exceed Layout/LineLength. ([@​viralpraxis][])
  • #​15884: Fix an infinite loop for Style/MultilineMethodSignature with a multiline parameter. ([@​koic][])
  • #​15723: Fix an infinite loop for Style/MutableConstant when a constant is assigned a method call with arguments and without parentheses. ([@​viralpraxis][])
  • #​15933: Fix an infinite loop for Style/MutableConstant with EnforcedStyle: strict and a chained assignment. ([@​koic][])
  • #​15891: Fix an infinite loop for Style/MutableConstant with EnforcedStyle: strict and a logical operator. ([@​koic][])
  • #​15885: Fix an infinite loop for Style/MutableConstant with EnforcedStyle: strict and a parenthesized value. ([@​koic][])
  • #​15846: Fix an infinite loop for Style/RedundantBegin cop when joining a single statement onto the assignment line would exceed Layout/LineLength. ([@​Starlexxx][])
  • #​15837: Fix an infinite loop for Style/RedundantParentheses with a setter in an empty condition. ([@​bbatsov][])
  • #​15872: Fix an infinite loop for Style/ReturnNil with a top-level return. ([@​Starlexxx][])
  • #​15690: Fix Style/DisableCopsWithinSourceCodeDirective to no longer autocorrect by removing a directive that only lacks a -- justification when AllowWithReason is enabled. ([@​koic][])
  • #​16001: Fix autocorrect_incompatible_with being ignored when the declaring cop runs last. ([@​bbatsov][])
  • #​15935: Fix cop errors not failing a run that inspects files in parallel. ([@​bbatsov][])
  • #​15784: Fix rubocop:enable-next, rubocop:push and rubocop:next directives not running cops disabled in the configuration when given a department name. ([@​bbatsov][])
  • #​16009: Fix the documentation URL of cops with digits in their names, such as Lint/UselessRuby2Keywords, which dropped the digits from the anchor. ([@​bbatsov][])
  • #​15786: Fix an incorrect autocorrect for Lint/MisplacedMagicComment when a misplaced encoding comment overrode an effective one. ([@​bbatsov][])
  • #​15945: Fix MCP autocorrection rewriting files it has nothing to correct in. ([@​bbatsov][])
  • #​15937: Fix the ignored --parallel notice being shown for --no-parallel. ([@​bbatsov][])
  • #​15908: Fix false negatives for Layout/EmptyLines with CRLF line endings. ([@​koic][])
  • #​15771: Fix false negatives for Style/AmbiguousEndlessMethodDefinition cop with singleton methods. ([@​Starlexxx][])
  • #​15836: Fix false negatives in Style/SelfAssignment with a parenthesized right-hand side. ([@​koic][])
  • #​15761: Fix false positive for Layout/MultilineMethodCallIndentation when a method chain is inside a block, begin, if or loop body in a hash pair value. ([@​amritk][])
  • #​14520: Fix false positives for Lint/UselessAssignment when a loop condition variable is reassigned in a loop body inside a method. ([@​mattyb][])
  • #​15803: Fix false positives for Lint/UselessAssignment when a variable reassigned in a conditional in begin is referenced in rescue. ([@​mattyb][])
  • #​15822: Fix false positives in Layout/CaseIndentation when using IndentOneStep: true with tab indentation. ([@​koic][])
  • #​15828: Fix false positives in Layout/SpaceAfterNot when the argument is a unary ~. ([@​koic][])
  • #​15829: Fix false positives in Style/DoubleNegation when using three or more negations. ([@​koic][])
  • #​15783: Fix --changed missing untracked files outside the current directory when run from a subdirectory. ([@​bbatsov][])
  • #​15838: Fix incorrect autocorrects for Lint/LiteralAsCondition with an if used as a value or a post-loop containing break, next or redo. ([@​bbatsov][])
  • #​15779: Fix --diff writing the corrected file to disk, and leaving the removal out of the patch, when the file has a redundant rubocop:disable. ([@​bbatsov][])
  • #​15363: Fix Lint/RedundantCopDisableDirective reporting directives for cops that only the preview defaults disable, which are needed again once preview is off. ([@​bbatsov][])
  • #​15959: Fix MCP autocorrection leaving a file truncated when the disk fills up while it is being written. ([@​bbatsov][])
  • #​15786: Fix an incorrect autocorrect for Lint/MisplacedMagicComment that pushed an effective encoding comment off the first line when moving a frozen_string_literal comment. ([@​bbatsov][])
  • #​15751: Fix an infinite loop when autocorrecting Layout/HashAlignment with EnforcedHashRocketStyle: separator together with Layout/SpaceAroundOperators by aligning values one space after the separator instead of copying the first pair's value spacing. ([@​Starlexxx][])
  • #​15717: Fix an infinite loop when autocorrecting Layout/HashAlignment with EnforcedHashRocketStyle: separator together with Layout/SpaceAroundOperators by skipping offenses for keys that are too wide to right-align with the first key. ([@​Starlexxx][])
  • #​15692: Fix Parser::ClobberingError for Layout/RedundantLineBreak when autocorrecting nested assignments with a multiline right-hand side. ([@​Starlexxx][])
  • #​15713: Fix an infinite loop when autocorrecting Layout/SpaceAroundKeyword together with Layout/SpaceBeforeBlockBraces with EnforcedStyle: no_space for a keyword followed by a brace block. ([@​Starlexxx][])
  • #​15948: Fix the LSP server applying contextual corrections while editing for the rest of a session after a cop fails during a format command. ([@​bbatsov][])
  • #​15923: Fix MCP requests failing outright when a cop crashes. ([@​bbatsov][])
  • #​15945: Fix offenses that autocorrection leaves being reported twice when it removes a redundant directive. ([@​bbatsov][])
  • #​15711: Fix pending cops being dropped when two departments share a cop name. ([@​bquorning][])
  • #​15131: Fix false negatives for unparenthesized bitwise operations and prevent conflicting Style/NumericPredicate autocorrections. ([@​saidM][])
  • #​9325: Fix preview not merging an inherited Exclude when AllCops: Preview comes after the cop in an inherited file, or from an earlier file in inherit_from. ([@​bbatsov][])
  • #​15363: Fix AllCops: Preview being ignored, and --preview leaking into the default configuration, when an extension injects defaults via ConfigLoader.inject_defaults! or a plugin is loaded. ([@​bbatsov][])
  • #​15937: Fix the notice that --parallel is being ignored going to stdout, where it broke --format json output. ([@​bbatsov][])
  • #​15959: Fix MCP tools answering an argument they don't take with an internal error rather than a tool error that names it. ([@​bbatsov][])
  • #​15363: Fix an invalid AllCops: Preview value being silently treated as false instead of rejected. ([@​bbatsov][])
  • #​15957: Fix the MCP server reporting length and complexity offenses on a definition's first line only, and syntax errors without the parser version, unlike --format json. ([@​bbatsov][])
  • #​15782: Fix the SARIF formatter reporting note as the default level of Security cops, whose results are reported as warning. ([@​bbatsov][])
  • #​15783: Fix --changed skipping staged files in a repository without any commits. ([@​bbatsov][])
  • #​15782: Fix the SARIF formatter giving repeated offenses of a cop on identical line text the same fingerprint, which let GitHub code scanning merge them into one alert. ([@​bbatsov][])
  • #​15782: Fix --format sarif output being followed by the diff under --diff or the corrected source under --stdin --autocorrect, which made it invalid JSON. ([@​bbatsov][])
  • #​15720: Fix rubocop -a leaving the file empty when interrupted while writing the corrected source, by writing to a temporary file in the same directory and renaming it over the original. ([@​koic][])
  • #​15959: Fix the MCP server's setup advice limiting the mcp gem to versions below 1.0. ([@​bbatsov][])
  • #​15784: Fix Style/DisableCopsWithinSourceCodeDirective ignoring the obsolete AllowTrailingComment setting instead of treating it as AllowWithReason. ([@​bbatsov][])
  • #​15784: Fix Style/DisableCopsWithinSourceCodeDirective ignoring AllowedCops for rubocop:push/rubocop:next arguments and leaving an orphan rubocop:pop when correcting a rubocop:push. ([@​bbatsov][])
  • #​16007: Fix Style/ExactRegexpMatch treating string === regexp as a regexp match. ([@​bbatsov][])
  • #​15741: Fix an incorrect autocorrect for Style/MethodCallWithArgsParentheses with EnforcedStyle: require_parentheses when the argument is a grouped expression containing a keyword operator, modifier, or multiple statements. ([@​Starlexxx][])
  • #​15712: Fix an infinite loop when autocorrecting Style/MissingElse together with Style/GuardClause when the conditional branch is a guard clause. ([@​Starlexxx][])
  • #​15995: Fix Style/Semicolon dropping arguments and erroring on yield/super with hash value omission. ([@​bbatsov][])
  • #​15783: Fix --changed lib failing with an error instead of inspecting the changed files under lib. ([@​bbatsov][])
  • #​16001: Fix the obsolete config message for a removed cop without alternatives. ([@​bbatsov][])
  • #​16012: Fix the offenses and worst formatters printing "Total in 1 files". ([@​bbatsov][])
Changes
  • #​16010: Load net/http only when a remote config is fetched, instead of on every run. ([@​bbatsov][])
  • #​15732: Check requires_gem requirements against target_gem_version, so that an extension can honor its own target version setting under AllCops, like TargetRailsVersion, by overriding it. ([@​koic][])
  • #​15843: Mark Style/NegativeArrayIndex as unsafe. ([@​bbatsov][])
  • #​15896: Report offenses from the MCP server's rubocop_inspection tool in the --format json shape instead of as LSP diagnostics, with inline code results in the same files-and-summary form as file results. ([@​bbatsov][])
  • #​15701: Make --show-cops and --show-docs-url report unrecognized cop names and exit non-zero, instead of silently ignoring them. ([@​bbatsov][])

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • "before 8am on saturday"
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate CLI.

This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [rubocop](https://rubocop.org/) ([source](https://github.com/rubocop/rubocop), [changelog](https://github.com/rubocop/rubocop/releases/tag/v1.92.0)) | `1.91.0` → `1.92.0` | ![age](https://developer.mend.io/api/mc/badges/age/rubygems/rubocop/1.92.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/rubygems/rubocop/1.91.0/1.92.0?slim=true) | --- ### Release Notes <details> <summary>rubocop/rubocop (rubocop)</summary> ### [`v1.92.0`](https://github.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1920-2026-10-10) [Compare Source](https://github.com/rubocop/rubocop/compare/v1.91.0...v1.92.0) ##### New features - [#&#8203;15895](https://github.com/rubocop/rubocop/pull/15895): Add an MCP tool that explains what cops do. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15700](https://github.com/rubocop/rubocop/pull/15700): Add `--explain COP` to describe what a cop does, how it is configured, and the examples from its documentation. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15699](https://github.com/rubocop/rubocop/pull/15699): Add `--max-offenses-per-cop` to cap how many offenses a single cop reports. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15948](https://github.com/rubocop/rubocop/pull/15948): Let MCP autocorrection apply the corrections of `AutoCorrect: contextual` cops when asked to. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15945](https://github.com/rubocop/rubocop/pull/15945): Let MCP autocorrection preview its changes as a diff. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15915](https://github.com/rubocop/rubocop/pull/15915): Let MCP inspection cap how many offenses each cop reports. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15930](https://github.com/rubocop/rubocop/pull/15930): Let MCP tools choose which cops run and which files they check. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;14666](https://github.com/rubocop/rubocop/issues/14666): Make `Lint/UselessAssignment` register an offense for a block-captured variable that is never referenced. (\[[@&#8203;IslamElsayed](https://github.com/IslamElsayed)]\[]) - [#&#8203;15695](https://github.com/rubocop/rubocop/pull/15695): Report autocorrection edits in the JSON formatter. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15940](https://github.com/rubocop/rubocop/pull/15940): Report cop errors and warnings per file in `--format json`. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15945](https://github.com/rubocop/rubocop/pull/15945): Report the offenses MCP autocorrection leaves behind. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) ##### Bug fixes - [#&#8203;15780](https://github.com/rubocop/rubocop/pull/15780): Fix an error for `Lint/MissingCopEnableDirective` when an `enable-next` or `next +Cop` directive suspends an open `rubocop:disable`, and a false positive for `next -Cop` scopes larger than `MaxRangeSize`. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;16005](https://github.com/rubocop/rubocop/pull/16005): Fix a false negative for `Security/JSONLoad` with `create_additions` as the second argument. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15994](https://github.com/rubocop/rubocop/pull/15994): Fix a false positive for `Layout/LineEndStringConcatenationIndentation` with an already aligned part. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15842](https://github.com/rubocop/rubocop/pull/15842): Fix a false positive for `Style/ExplicitBlockArgument` when the method uses argument forwarding (`...`). (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15843](https://github.com/rubocop/rubocop/pull/15843): Fix a false positive for `Style/NegativeArrayIndex` with a different length receiver. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15841](https://github.com/rubocop/rubocop/pull/15841): Fix a false positive for `Style/RedundantFreeze` with an arithmetic operation on a non-numeric receiver. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15843](https://github.com/rubocop/rubocop/pull/15843): Fix a false positive for `Style/Sample` with an endless range, which was corrected to a `sample` call of the wrong size. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15842](https://github.com/rubocop/rubocop/pull/15842): Fix a false positive for `Style/SuperArguments` when the method has a destructuring parameter. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15740](https://github.com/rubocop/rubocop/pull/15740): Fix an error for `Layout/EmptyLinesAroundMethodBody` when a method's arguments span multiple lines and the method ends on the last argument's line. (\[[@&#8203;viralpraxis](https://github.com/viralpraxis)]\[]) - [#&#8203;15860](https://github.com/rubocop/rubocop/pull/15860): Fix an error for `Layout/HeredocIndentation` with a heredoc nested in another heredoc. (\[[@&#8203;Starlexxx](https://github.com/Starlexxx)]\[]) - [#&#8203;15876](https://github.com/rubocop/rubocop/pull/15876): Fix an error for `Lint/EmptyConditionalBody` with `else` on the condition line. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;16008](https://github.com/rubocop/rubocop/pull/16008): Fix an error for `Lint/UnescapedBracketInRegexp` when using regexp_parser 2.11.2 and earlier. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15897](https://github.com/rubocop/rubocop/pull/15897): Fix an error for `Metrics/ClassLength` with a long singleton class in LSP mode. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15749](https://github.com/rubocop/rubocop/pull/15749): Fix an error for `Style/ClassAndModuleChildren` when a compact class or module definition appears in an expression, such as an assignment value or a method argument. (\[[@&#8203;viralpraxis](https://github.com/viralpraxis)]\[]) - [#&#8203;15750](https://github.com/rubocop/rubocop/pull/15750): Fix an error for `Style/ClassAndModuleChildren` when using `EnforcedStyle: compact` and the nested body is indented less than `Layout/IndentationWidth`'s `Width`. (\[[@&#8203;viralpraxis](https://github.com/viralpraxis)]\[]) - [#&#8203;15764](https://github.com/rubocop/rubocop/pull/15764): Fix an error for `Style/ClassAndModuleChildren` when `EnforcedStyle: compact` compacts an irregularly indented definition and `Layout/IndentationStyle` enforces tabs. (\[[@&#8203;viralpraxis](https://github.com/viralpraxis)]\[]) - [#&#8203;15946](https://github.com/rubocop/rubocop/pull/15946): Fix an error for `Style/ExplicitBlockArgument` with the shorthand call syntax. (\[[@&#8203;Starlexxx](https://github.com/Starlexxx)]\[]) - [#&#8203;15861](https://github.com/rubocop/rubocop/pull/15861): Fix an error for `Style/FormatString` with `format` nested in `format`. (\[[@&#8203;Starlexxx](https://github.com/Starlexxx)]\[]) - [#&#8203;15694](https://github.com/rubocop/rubocop/pull/15694): Fix an error for `Style/HashSyntax` when a `no_mixed_keys` style forces hash rockets on a hash whose value repeats its key. (\[[@&#8203;viralpraxis](https://github.com/viralpraxis)]\[]) - [#&#8203;16007](https://github.com/rubocop/rubocop/pull/16007): Fix an error for `Style/IfInsideElse` when the nested `if` shares a line with other code. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15867](https://github.com/rubocop/rubocop/pull/15867): Fix an error for `Style/MapIntoArray` when pushing into a numbered or `it` block parameter. (\[[@&#8203;Starlexxx](https://github.com/Starlexxx)]\[]) - [#&#8203;15949](https://github.com/rubocop/rubocop/pull/15949): Fix an error for `Style/Next` with a modifier condition wrapping a block that has its own offense. (\[[@&#8203;Starlexxx](https://github.com/Starlexxx)]\[]) - [#&#8203;15797](https://github.com/rubocop/rubocop/pull/15797): Fix an error for `Style/RedundantCondition` when autocorrecting a redundant condition nested in the `else` branch of another one. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15928](https://github.com/rubocop/rubocop/pull/15928): Fix an error for `Style/Semicolon` when a semicolon follows an unparenthesized keyword parameter or hash pattern. (\[[@&#8203;viralpraxis](https://github.com/viralpraxis)]\[]) - [#&#8203;15714](https://github.com/rubocop/rubocop/pull/15714): Fix an error for `Style/YodaCondition` when one operand of a comparison contains another comparison the cop also corrects. (\[[@&#8203;viralpraxis](https://github.com/viralpraxis)]\[]) - [#&#8203;16011](https://github.com/rubocop/rubocop/pull/16011): Fix an error for the `pacman` formatter, which crashed with `undefined method 'winsize'` whether or not the output was a terminal. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15731](https://github.com/rubocop/rubocop/pull/15731): Fix an error when caching offenses whose correction or justification cannot be represented as UTF-8. (\[[@&#8203;viralpraxis](https://github.com/viralpraxis)]\[]) - [#&#8203;16015](https://github.com/rubocop/rubocop/pull/16015): Fix an error when cleaning up a result cache that can't be written. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15702](https://github.com/rubocop/rubocop/pull/15702): Fix an error when interrupting RuboCop with `Ctrl-C`. (\[[@&#8203;viralpraxis](https://github.com/viralpraxis)]\[]) - [#&#8203;16015](https://github.com/rubocop/rubocop/pull/16015): Fix an error when the cache directory or config can't be accessed under a sandbox. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;16015](https://github.com/rubocop/rubocop/pull/16015): Fix an error when the result cache directory exists but can't be written. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15817](https://github.com/rubocop/rubocop/pull/15817): Fix an incorrect autocorrect for `Gemspec/OrderedDependencies` when the same dependency declaration appears more than once in the gemspec. (\[[@&#8203;viralpraxis](https://github.com/viralpraxis)]\[]) - [#&#8203;15903](https://github.com/rubocop/rubocop/pull/15903): Fix an incorrect autocorrect for `Layout/ClassStructure` with blank line cops. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15984](https://github.com/rubocop/rubocop/pull/15984): Fix an incorrect autocorrect for `Layout/ClassStructure` with `Layout/EmptyLinesAroundAccessModifier`. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15997](https://github.com/rubocop/rubocop/pull/15997): Fix an incorrect autocorrect for `Layout/ClassStructure` with a heredoc constant. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15697](https://github.com/rubocop/rubocop/pull/15697): Fix an incorrect autocorrect for `Layout/EmptyLinesAroundBlockBody` when using `EnforcedStyle: empty_lines` and the empty line would precede a leading dot method call. (\[[@&#8203;viralpraxis](https://github.com/viralpraxis)]\[]) - [#&#8203;15953](https://github.com/rubocop/rubocop/pull/15953): Fix an incorrect autocorrect for `Layout/EmptyLinesAroundBlockBody` with `do` on its own line. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15818](https://github.com/rubocop/rubocop/pull/15818): Fix an incorrect autocorrect for `Layout/ExtraSpacing` cop with `ForceEqualSignAlignment: true` when `Style/SelfAssignment` rewrites the same assignment. (\[[@&#8203;Starlexxx](https://github.com/Starlexxx)]\[]) - [#&#8203;15997](https://github.com/rubocop/rubocop/pull/15997): Fix an incorrect autocorrect for `Layout/FirstArgumentIndentation` with an inner call not beginning its line. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15904](https://github.com/rubocop/rubocop/pull/15904): Fix an incorrect autocorrect for `Layout/FirstMethodArgumentLineBreak` with `Style/MethodCallWithArgsParentheses`. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15875](https://github.com/rubocop/rubocop/pull/15875): Fix an incorrect autocorrect for `Layout/FirstMethodParameterLineBreak` with `Style/MethodDefParentheses`. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15793](https://github.com/rubocop/rubocop/pull/15793): Fix an incorrect autocorrect for `Layout/LineContinuationSpacing` cop when a line ends with the `$\` global variable. (\[[@&#8203;Starlexxx](https://github.com/Starlexxx)]\[]) - [#&#8203;15656](https://github.com/rubocop/rubocop/pull/15656): Fix an incorrect autocorrect for `Layout/LineLength` when breaking a line after an argument with a nested heredoc. (\[[@&#8203;Starlexxx](https://github.com/Starlexxx)]\[]) - [#&#8203;15844](https://github.com/rubocop/rubocop/pull/15844): Fix an incorrect autocorrect for `Layout/LineLength` cop when `Style/MethodCallWithArgsParentheses` with `EnforcedStyle: omit_parentheses` removes the parentheses it breaks after. (\[[@&#8203;Starlexxx](https://github.com/Starlexxx)]\[]) - [#&#8203;15813](https://github.com/rubocop/rubocop/pull/15813): Fix an incorrect autocorrect for `Layout/LineLength` when `SplitStrings: true` would split a string inside an escape sequence such as `\000`. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15777](https://github.com/rubocop/rubocop/pull/15777): Fix an incorrect autocorrect for `Layout/LineLength` with `SplitStrings: true` when an interpolation in the string contains a block. (\[[@&#8203;Starlexxx](https://github.com/Starlexxx)]\[]) - [#&#8203;15997](https://github.com/rubocop/rubocop/pull/15997): Fix an incorrect autocorrect for `Layout/LineLength` with `SplitStrings` and a string not beginning its line. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15964](https://github.com/rubocop/rubocop/pull/15964): Fix an incorrect autocorrect for `Layout/MultilineArrayBraceLayout` with `Layout/MultilineHashBraceLayout` and `Layout/MultilineMethodCallBraceLayout`. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15966](https://github.com/rubocop/rubocop/pull/15966): Fix an incorrect autocorrect for `Layout/MultilineArrayBraceLayout` with `Style/ConcatArrayLiterals`. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15789](https://github.com/rubocop/rubocop/pull/15789): Fix an incorrect autocorrect for `Layout/MultilineBlockLayout` cop adding a trailing comma when the only positional block argument is followed by keyword arguments. (\[[@&#8203;Starlexxx](https://github.com/Starlexxx)]\[]) - [#&#8203;15955](https://github.com/rubocop/rubocop/pull/15955): Fix an incorrect autocorrect for `Layout/MultilineBlockLayout` with block argument rewriting cops. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15932](https://github.com/rubocop/rubocop/pull/15932): Fix an incorrect autocorrect for `Layout/MultilineHashBraceLayout` with `Style/HashAsLastArrayItem` and `Style/RedundantDoubleSplatHashBraces`. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15906](https://github.com/rubocop/rubocop/pull/15906): Fix an incorrect autocorrect for `Layout/MultilineArrayLineBreaks`, `Layout/MultilineHashKeyLineBreaks`, `Layout/MultilineMethodArgumentLineBreaks` and `Layout/MultilineMethodParameterLineBreaks` after a heredoc opener. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15748](https://github.com/rubocop/rubocop/pull/15748): Fix an incorrect autocorrect for `Layout/MultilineMethodCallBraceLayout` when `EnforcedStyle: omit_parentheses` of `Style/MethodCallWithArgsParentheses` removes the parentheses the layout cop is moving. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15870](https://github.com/rubocop/rubocop/pull/15870): Fix an incorrect autocorrect for `Layout/MultilineMethodDefinitionBraceLayout` with `Style/MultilineMethodSignature`. (\[[@&#8203;Starlexxx](https://github.com/Starlexxx)]\[]) - [#&#8203;15967](https://github.com/rubocop/rubocop/pull/15967): Fix an incorrect autocorrect for `Layout/SingleLineBlockChain` with `Style/NilComparison`. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15988](https://github.com/rubocop/rubocop/pull/15988): Fix an incorrect autocorrect for `Layout/SingleLineBlockChain` with `Style/FloatDivision`. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15865](https://github.com/rubocop/rubocop/pull/15865): Fix an incorrect autocorrect for `Layout/SingleLineBlockChain` with a heredoc. (\[[@&#8203;Starlexxx](https://github.com/Starlexxx)]\[]) - [#&#8203;15735](https://github.com/rubocop/rubocop/pull/15735): Fix an incorrect autocorrect for `Layout/SpaceInsideBlockBraces` with `EnforcedStyle: no_space` when a multiline block's last line has code before the closing bracket. (\[[@&#8203;viralpraxis](https://github.com/viralpraxis)]\[]) - [#&#8203;15838](https://github.com/rubocop/rubocop/pull/15838): Fix an incorrect autocorrect for `Lint/AmbiguousOperator` with `Style/ArgumentsForwarding`. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15913](https://github.com/rubocop/rubocop/pull/15913): Fix an incorrect autocorrect for `Lint/EmptyConditionalBody` with an empty `elsif` and `else`. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15971](https://github.com/rubocop/rubocop/pull/15971): Fix an incorrect autocorrect for `Lint/LiteralInInterpolation` with a `#` next to the interpolation. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15999](https://github.com/rubocop/rubocop/pull/15999): Fix an incorrect autocorrect for `Lint/LiteralInInterpolation` with an empty literal after a `#`. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;16004](https://github.com/rubocop/rubocop/pull/16004): Fix an incorrect autocorrect for `Lint/LiteralInInterpolation` with two adjacent interpolations. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15795](https://github.com/rubocop/rubocop/pull/15795): Fix an incorrect autocorrect for `Lint/Loop` when `begin ... end while` or `begin ... end until` is written on a single line. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15889](https://github.com/rubocop/rubocop/pull/15889): Fix an incorrect autocorrect for `Lint/NumberConversion` with a symbol operand of an operator. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15934](https://github.com/rubocop/rubocop/pull/15934): Fix an incorrect autocorrect for `Lint/RedundantDirGlobSort` with a leading dot. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;16007](https://github.com/rubocop/rubocop/pull/16007): Fix an incorrect autocorrect for `Lint/UnescapedBracketInRegexp` with a double-quoted `Regexp.new` string. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;16007](https://github.com/rubocop/rubocop/pull/16007): Fix an incorrect autocorrect for `Lint/UnescapedBracketInRegexp` with an escaped `Regexp.new` string. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15838](https://github.com/rubocop/rubocop/pull/15838): Fix an incorrect autocorrect for `Lint/UselessAssignment` with a list of values without brackets. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15796](https://github.com/rubocop/rubocop/pull/15796): Fix an incorrect autocorrect for `Lint/Void` when removing a heredoc in void context, so that its body and terminator are removed with it. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15832](https://github.com/rubocop/rubocop/pull/15832): Fix an incorrect autocorrect for `Layout/MultilineArrayBraceLayout`, `Layout/MultilineHashBraceLayout`, `Layout/MultilineMethodCallBraceLayout`, and `Layout/MultilineMethodDefinitionBraceLayout` when a heredoc is opened on the line of the closing brace. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15952](https://github.com/rubocop/rubocop/pull/15952): Fix an incorrect autocorrect for `Naming/HeredocDelimiterCase` when the body has the corrected delimiter. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15800](https://github.com/rubocop/rubocop/pull/15800): Fix an incorrect autocorrect for `Style/AccessModifierDeclarations` with a splatted variable. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15801](https://github.com/rubocop/rubocop/pull/15801): Fix an incorrect autocorrect for `Style/Alias` when a symbol argument such as `:"foo bar"` or `:@type` has no bareword form. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15991](https://github.com/rubocop/rubocop/pull/15991): Fix an incorrect autocorrect for `Style/AndOr` with `Style/ReturnNilInPredicateMethodDefinition`. (\[[@&#8203;Starlexxx](https://github.com/Starlexxx)]\[]) - [#&#8203;15962](https://github.com/rubocop/rubocop/pull/15962): Fix an incorrect autocorrect for `Style/ArgumentsForwarding` adding parentheses twice to a method definition. (\[[@&#8203;Starlexxx](https://github.com/Starlexxx)]\[]) - [#&#8203;15893](https://github.com/rubocop/rubocop/pull/15893): Fix an incorrect autocorrect for `Style/ArgumentsForwarding` with a block literal. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15843](https://github.com/rubocop/rubocop/pull/15843): Fix an incorrect autocorrect for `Style/Attr` with parenthesized arguments. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15727](https://github.com/rubocop/rubocop/pull/15727): Fix an incorrect autocorrect for `Style/BlockDelimiters` when a braces block is the collection of a `for` loop. (\[[@&#8203;viralpraxis](https://github.com/viralpraxis)]\[]) - [#&#8203;15758](https://github.com/rubocop/rubocop/pull/15758): Fix an incorrect autocorrect for `Style/BlockDelimiters` when `Style/MethodCallWithArgsParentheses` with `EnforcedStyle: omit_parentheses` removes the call's parentheses in the same pass, producing invalid code such as `foo :bar { baz }`. (\[[@&#8203;viralpraxis](https://github.com/viralpraxis)]\[]) - [#&#8203;15838](https://github.com/rubocop/rubocop/pull/15838): Fix an incorrect autocorrect for `Style/BlockDelimiters` with a block in a loop condition. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15842](https://github.com/rubocop/rubocop/pull/15842): Fix an incorrect autocorrect for `Style/BlockDelimiters` with a multiline block in an argument of `yield` or `super` without parentheses. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15975](https://github.com/rubocop/rubocop/pull/15975): Fix an incorrect autocorrect for `Style/BlockDelimiters` with a heredoc after `rescue`. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15747](https://github.com/rubocop/rubocop/pull/15747): Fix an incorrect autocorrect for `Style/BlockDelimiters` with `Layout/SpaceBeforeBlockBraces`. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15840](https://github.com/rubocop/rubocop/pull/15840): Fix an incorrect autocorrect for `Style/CaseLikeIf` with an `if` inside the `else` branch. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15730](https://github.com/rubocop/rubocop/pull/15730): Fix an incorrect autocorrect for `Style/ClassAndModuleChildren` with `EnforcedStyle: compact` when a one-liner child class has a superclass or a body. (\[[@&#8203;viralpraxis](https://github.com/viralpraxis)]\[]) - [#&#8203;15961](https://github.com/rubocop/rubocop/pull/15961): Fix an incorrect autocorrect for `Style/ClassAndModuleChildren` when compacting a nested definition. (\[[@&#8203;Starlexxx](https://github.com/Starlexxx)]\[]) - [#&#8203;15943](https://github.com/rubocop/rubocop/pull/15943): Fix an incorrect autocorrect for `Style/ClassAndModuleChildren` with `Style/StructInheritance`. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15744](https://github.com/rubocop/rubocop/pull/15744): Fix an incorrect autocorrect for `Style/ClassMethodsDefinitions` when a method definition inside `class << self` is followed by other code on its last line. (\[[@&#8203;viralpraxis](https://github.com/viralpraxis)]\[]) - [#&#8203;15922](https://github.com/rubocop/rubocop/pull/15922): Fix an incorrect autocorrect for `Style/CombinableLoops` when followed by another block. (\[[@&#8203;Starlexxx](https://github.com/Starlexxx)]\[]) - [#&#8203;15996](https://github.com/rubocop/rubocop/pull/15996): Fix an incorrect autocorrect for `Style/CombinableLoops` when one of the loops is disabled. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;16006](https://github.com/rubocop/rubocop/pull/16006): Fix an incorrect autocorrect for `Style/CombinableLoops` with comments after the loop's opening. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;16006](https://github.com/rubocop/rubocop/pull/16006): Fix an incorrect autocorrect for `Style/CombinableLoops` with comments before the closing delimiter. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15987](https://github.com/rubocop/rubocop/pull/15987): Fix an incorrect autocorrect for `Style/CombinableLoops` with mixed block delimiters. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15996](https://github.com/rubocop/rubocop/pull/15996): Fix an incorrect autocorrect for `Style/CombinableLoops` with numbered and `it` parameters. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15878](https://github.com/rubocop/rubocop/pull/15878): Fix an incorrect autocorrect for `Style/CombinableLoops` with `rescue` in a loop body. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;16004](https://github.com/rubocop/rubocop/pull/16004): Fix an incorrect autocorrect for `Style/ConcatArrayLiterals` dropping comments. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15834](https://github.com/rubocop/rubocop/pull/15834): Fix an incorrect autocorrect for `Style/ConcatArrayLiterals` with `Style/MethodCallWithArgsParentheses`. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15881](https://github.com/rubocop/rubocop/pull/15881): Fix an incorrect autocorrect for `Style/ConcatArrayLiterals` with `Style/TrailingCommaInArguments`. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15999](https://github.com/rubocop/rubocop/pull/15999): Fix an incorrect autocorrect for `Style/ConcatArrayLiterals` with multiline array arguments. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15773](https://github.com/rubocop/rubocop/pull/15773): Fix an incorrect autocorrect for `Style/ConditionalAssignment` with `EnforcedStyle: assign_inside_condition` when `Style/MethodCallWithArgsParentheses` with `EnforcedStyle: omit_parentheses` removes a branch body's parentheses in the same pass, producing invalid code such as `foo << bar :baz`. (\[[@&#8203;viralpraxis](https://github.com/viralpraxis)]\[]) - [#&#8203;15863](https://github.com/rubocop/rubocop/pull/15863): Fix an incorrect autocorrect for `Style/EmptyLiteral` when `Hash[]` or `Hash([])` is the first argument of a method call without parentheses. (\[[@&#8203;kevin9327](https://github.com/kevin9327)]\[]) - [#&#8203;15689](https://github.com/rubocop/rubocop/pull/15689): Fix an incorrect autocorrect for `Style/EndlessMethod` when a method is made endless while `Style/MethodCallWithArgsParentheses` omits parentheses in its body. (\[[@&#8203;viralpraxis](https://github.com/viralpraxis)]\[]) - [#&#8203;16014](https://github.com/rubocop/rubocop/pull/16014): Fix an incorrect autocorrect for `Style/EndlessMethod` and `Style/SingleLineMethods` with a one-line pattern match or `begin...end while` body. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15715](https://github.com/rubocop/rubocop/pull/15715): Fix an incorrect autocorrect for `Style/EndlessMethod` when the method body ends with an anonymous argument forwarding. (\[[@&#8203;viralpraxis](https://github.com/viralpraxis)]\[]) - [#&#8203;15710](https://github.com/rubocop/rubocop/pull/15710): Fix an incorrect autocorrect for `Style/EndlessMethod` when the method body passes a multiline or xstring heredoc to a method call. (\[[@&#8203;viralpraxis](https://github.com/viralpraxis)]\[]) - [#&#8203;15716](https://github.com/rubocop/rubocop/pull/15716): Fix an incorrect autocorrect for `Style/EndlessMethod` when the method body is a multiple assignment. (\[[@&#8203;viralpraxis](https://github.com/viralpraxis)]\[]) - [#&#8203;15707](https://github.com/rubocop/rubocop/pull/15707): Fix an incorrect autocorrect for `Style/EndlessMethod` when the method body ends with an omitted hash value. (\[[@&#8203;viralpraxis](https://github.com/viralpraxis)]\[]) - [#&#8203;15831](https://github.com/rubocop/rubocop/pull/15831): Fix an incorrect autocorrect for `Style/EndlessMethod` with a command that an endless body cannot hold. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15815](https://github.com/rubocop/rubocop/pull/15815): Fix an incorrect autocorrect for `Style/EndlessMethod` deleting a comment placed between the method signature and `end`. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15992](https://github.com/rubocop/rubocop/pull/15992): Fix an incorrect autocorrect for `Style/EndlessMethod` with a modifier condition or `and`/`or` body. (\[[@&#8203;Starlexxx](https://github.com/Starlexxx)]\[]) - [#&#8203;15775](https://github.com/rubocop/rubocop/pull/15775): Fix an incorrect autocorrect for `Style/EndlessMethod` when `Naming/BlockForwarding` or `Style/ArgumentsForwarding` adds parentheses to the same method definition. (\[[@&#8203;Starlexxx](https://github.com/Starlexxx)]\[]) - [#&#8203;15842](https://github.com/rubocop/rubocop/pull/15842): Fix an incorrect autocorrect for `Style/EndlessMethod` and `Style/SingleLineMethods` when the method body assigns multiple values without brackets. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15756](https://github.com/rubocop/rubocop/pull/15756): Fix an incorrect autocorrect for `Style/EndlessMethod` when the method parameters are not surrounded by parentheses. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15843](https://github.com/rubocop/rubocop/pull/15843): Fix an incorrect autocorrect for `Style/ExactRegexpMatch` when the result is used. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15790](https://github.com/rubocop/rubocop/pull/15790): Fix an incorrect autocorrect for `Style/ExplicitBlockArgument` cop when the method already has an argument or local variable named `block`. (\[[@&#8203;Starlexxx](https://github.com/Starlexxx)]\[]) - [#&#8203;15963](https://github.com/rubocop/rubocop/pull/15963): Fix an incorrect autocorrect for `Style/ExplicitBlockArgument` with `Style/LambdaCall`. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15965](https://github.com/rubocop/rubocop/pull/15965): Fix an incorrect autocorrect for `Style/ExplicitBlockArgument` with `Style/TrailingCommaInArguments`. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15998](https://github.com/rubocop/rubocop/pull/15998): Fix an incorrect autocorrect for `Style/ExplicitBlockArgument` with an empty index call. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15842](https://github.com/rubocop/rubocop/pull/15842): Fix an incorrect autocorrect for `Style/ExplicitBlockArgument` when `super` without arguments is called in a method with keyword or block parameters. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15977](https://github.com/rubocop/rubocop/pull/15977): Fix an incorrect autocorrect for `Style/FloatDivision` with a leading dot. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15768](https://github.com/rubocop/rubocop/pull/15768): Fix an incorrect autocorrect for `Style/For` when `EnforcedStyle: for` and the block body abuts a brace, such as `c.each {d}`, which left `do` or `end` glued to the body. (\[[@&#8203;viralpraxis](https://github.com/viralpraxis)]\[]) - [#&#8203;15765](https://github.com/rubocop/rubocop/pull/15765): Fix an incorrect autocorrect for `Style/For` when `EnforcedStyle: for` and the multiline `each` block is delimited by braces. (\[[@&#8203;viralpraxis](https://github.com/viralpraxis)]\[]) - [#&#8203;15911](https://github.com/rubocop/rubocop/pull/15911): Fix an incorrect autocorrect for `Style/For` with a `do`...`end` block in the collection. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15838](https://github.com/rubocop/rubocop/pull/15838): Fix an incorrect autocorrect for `Style/For` with a non-local loop variable or an implicit block parameter. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15882](https://github.com/rubocop/rubocop/pull/15882): Fix an incorrect autocorrect for `Style/For` with `Style/RedundantBegin`. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15970](https://github.com/rubocop/rubocop/pull/15970): Fix an incorrect autocorrect for `Style/FormatString` with a braced hash argument. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15842](https://github.com/rubocop/rubocop/pull/15842): Fix an incorrect autocorrect for `Style/FormatString` when the argument of `String#%` is an instance variable, a constant or another value that may be an array. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15799](https://github.com/rubocop/rubocop/pull/15799): Fix an incorrect autocorrect for `Style/FrozenStringLiteralComment` when an encoding magic comment names an encoding other than UTF-8, so that the frozen string literal comment is inserted below it. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15840](https://github.com/rubocop/rubocop/pull/15840): Fix an incorrect autocorrect for `Style/GuardClause` with an `if` as the body of an endless method. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15998](https://github.com/rubocop/rubocop/pull/15998): Fix an incorrect autocorrect for `Style/HashConversion` in an index, setter or operator call. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15998](https://github.com/rubocop/rubocop/pull/15998): Fix an incorrect autocorrect for `Style/HashConversion` when calling a method on `Hash[]`. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15973](https://github.com/rubocop/rubocop/pull/15973): Fix an incorrect autocorrect for `Style/HashConversion` with `Style/MethodCallWithArgsParentheses`. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15998](https://github.com/rubocop/rubocop/pull/15998): Fix an incorrect autocorrect for `Style/HashConversion` with a method chain argument. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15998](https://github.com/rubocop/rubocop/pull/15998): Fix an incorrect autocorrect for `Style/HashConversion` with safe navigation, `super` or `yield`. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15698](https://github.com/rubocop/rubocop/pull/15698): Fix an incorrect autocorrect for `Style/HashLookupMethod` when the lookup is the target of a compound assignment. (\[[@&#8203;viralpraxis](https://github.com/viralpraxis)]\[]) - [#&#8203;15951](https://github.com/rubocop/rubocop/pull/15951): Fix an incorrect autocorrect for `Style/HashLookupMethod` with a leading dot. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15944](https://github.com/rubocop/rubocop/pull/15944): Fix an incorrect autocorrect for `Style/HashLookupMethod` with an explicit element reference call. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15772](https://github.com/rubocop/rubocop/pull/15772): Fix an incorrect autocorrect for `Style/HashSyntax` with `EnforcedStyle: hash_rockets` where expanding an omitted hash value also removed the line break that followed it. (\[[@&#8203;viralpraxis](https://github.com/viralpraxis)]\[]) - [#&#8203;15862](https://github.com/rubocop/rubocop/pull/15862): Fix an incorrect autocorrect for `Style/HashSyntax` with `Style/MethodCallWithArgsParentheses`. (\[[@&#8203;Starlexxx](https://github.com/Starlexxx)]\[]) - [#&#8203;15972](https://github.com/rubocop/rubocop/pull/15972): Fix an incorrect autocorrect for `Style/HashSyntax` with `Style/SuperWithArgsParentheses`. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15879](https://github.com/rubocop/rubocop/pull/15879): Fix an incorrect autocorrect for `Style/HashSyntax` with a keyword-named shorthand value. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15869](https://github.com/rubocop/rubocop/pull/15869): Fix an incorrect autocorrect for `Style/IdenticalConditionalBranches` when a duplicated expression shares its line. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;16007](https://github.com/rubocop/rubocop/pull/16007): Fix an incorrect autocorrect for `Style/IfInsideElse` with a modifier `if` on the `else` line. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15840](https://github.com/rubocop/rubocop/pull/15840): Fix an incorrect autocorrect for `Style/IfUnlessModifierOfIfUnless` with `Style/SoleNestedConditional`. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;16000](https://github.com/rubocop/rubocop/pull/16000): Fix an incorrect autocorrect for `Style/IfUnlessModifier` with a heredoc inside another heredoc. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15979](https://github.com/rubocop/rubocop/pull/15979): Fix an incorrect autocorrect for `Style/IfUnlessModifier` with a heredoc nested in the body. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15840](https://github.com/rubocop/rubocop/pull/15840): Fix an incorrect autocorrect for `Style/IfUnlessModifier` and `Style/WhileUntilModifier` with a conditional or loop in a call argument, ternary branch or endless method body. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15907](https://github.com/rubocop/rubocop/pull/15907): Fix an incorrect autocorrect for `Style/IfUnlessModifier` with an omitted hash value in a `return` or an assignment. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15852](https://github.com/rubocop/rubocop/pull/15852): Fix an incorrect autocorrect for `Style/IfWithSemicolon` when `if` is the receiver of a method call or an operand of an operator. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15854](https://github.com/rubocop/rubocop/pull/15854): Fix an incorrect autocorrect for `Style/IfWithSemicolon` when a branch is a `begin`/`end` loop with a `while` or `until` modifier. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15850](https://github.com/rubocop/rubocop/pull/15850): Fix an incorrect autocorrect for `Style/IfWithSemicolon` when `!` is applied to a method call with unparenthesized arguments. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15839](https://github.com/rubocop/rubocop/pull/15839): Fix an incorrect autocorrect for `Style/IfWithSemicolon` when the condition or a branch binds looser than the ternary operator. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15941](https://github.com/rubocop/rubocop/pull/15941): Fix an incorrect autocorrect for `Style/InverseMethods` with an operand of an operator. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15708](https://github.com/rubocop/rubocop/pull/15708): Fix an incorrect autocorrect for `Style/ItBlockParameter` when using `EnforcedStyle: always` and the block parameter is used inside a nested block. (\[[@&#8203;viralpraxis](https://github.com/viralpraxis)]\[]) - [#&#8203;15954](https://github.com/rubocop/rubocop/pull/15954): Fix an incorrect autocorrect for `Style/ItBlockParameter` with `Style/StabbyLambdaParentheses`. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15859](https://github.com/rubocop/rubocop/pull/15859): Fix an incorrect autocorrect for `Style/ItBlockParameter` with `Style/Lambda`. (\[[@&#8203;Starlexxx](https://github.com/Starlexxx)]\[]) - [#&#8203;15912](https://github.com/rubocop/rubocop/pull/15912): Fix an incorrect autocorrect for `Style/KeywordParametersOrder` with trailing whitespace. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15718](https://github.com/rubocop/rubocop/pull/15718): Fix an incorrect autocorrect for `Style/Lambda` when a lambda literal has an argument whose default value needs parentheses between pipes. (\[[@&#8203;viralpraxis](https://github.com/viralpraxis)]\[]) - [#&#8203;15986](https://github.com/rubocop/rubocop/pull/15986): Fix an incorrect autocorrect for `Style/LambdaCall` with a heredoc argument. (\[[@&#8203;Starlexxx](https://github.com/Starlexxx)]\[]) - [#&#8203;15978](https://github.com/rubocop/rubocop/pull/15978): Fix an incorrect autocorrect for `Style/Lambda` with a lambda literal in a pattern. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15887](https://github.com/rubocop/rubocop/pull/15887): Fix an incorrect autocorrect for `Style/Lambda` with `rescue` in an unparenthesized argument. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15826](https://github.com/rubocop/rubocop/pull/15826): Fix an incorrect autocorrect for `Style/MethodCallWithArgsParentheses` when `Style/TernaryParentheses` also parenthesizes the arguments of a ternary condition. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15812](https://github.com/rubocop/rubocop/pull/15812): Fix an incorrect autocorrect for `Style/MethodCallWithArgsParentheses` with `EnforcedStyle: omit_parentheses` when `Style/AndOr` rewrites the `and`/`or` keyword around an argument-bearing call in the same pass. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15833](https://github.com/rubocop/rubocop/pull/15833): Fix an incorrect autocorrect for `Style/MethodCallWithArgsParentheses` when `Style/RedundantParentheses` removes the parentheses around a call whose own parentheses are omitted in the same pass. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15824](https://github.com/rubocop/rubocop/pull/15824): Fix an incorrect autocorrect for `Style/MethodCallWithArgsParentheses` with `EnforcedStyle: omit_parentheses` when a call is assigned before the `and` or `or` keyword. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15905](https://github.com/rubocop/rubocop/pull/15905): Fix an incorrect autocorrect for `Style/MethodCallWithArgsParentheses` with a closing parenthesis on its own line. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15974](https://github.com/rubocop/rubocop/pull/15974): Fix an incorrect autocorrect for `Style/MethodCallWithArgsParentheses` with a nested call at the end of the line. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15999](https://github.com/rubocop/rubocop/pull/15999): Fix an incorrect autocorrect for `Style/MethodCallWithArgsParentheses` with a comment after `(`. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;4524](https://github.com/rubocop/rubocop/issues/4524): Fix an incorrect autocorrect for `Style/MethodCallWithoutArgsParentheses` when a local variable has the same name. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15696](https://github.com/rubocop/rubocop/pull/15696): Fix an incorrect autocorrect for `Style/MethodDefParentheses` when using `EnforcedStyle: require_no_parentheses` and the parameters begin on a line below the method name. (\[[@&#8203;viralpraxis](https://github.com/viralpraxis)]\[]) - [#&#8203;15888](https://github.com/rubocop/rubocop/pull/15888): Fix an incorrect autocorrect for `Style/MethodDefParentheses` with a destructured first parameter. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15914](https://github.com/rubocop/rubocop/pull/15914): Fix an incorrect autocorrect for `Style/MethodDefParentheses` with a single-line method body. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;16000](https://github.com/rubocop/rubocop/pull/16000): Fix an incorrect autocorrect for `Style/MultilineIfModifier` with a heredoc opened on the modifier line. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;16006](https://github.com/rubocop/rubocop/pull/16006): Fix an incorrect autocorrect for `Style/MultilineIfModifier` with a multiline string in the body. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;16006](https://github.com/rubocop/rubocop/pull/16006): Fix an incorrect autocorrect for `Style/MultilineIfModifier` with a non-squiggly heredoc in the body. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15969](https://github.com/rubocop/rubocop/pull/15969): Fix an incorrect autocorrect for `Style/MultilineInPatternThen` with an endless range pattern. (\[[@&#8203;Starlexxx](https://github.com/Starlexxx)]\[]) - [#&#8203;15848](https://github.com/rubocop/rubocop/pull/15848): Fix an incorrect autocorrect for `Style/MultilineTernaryOperator` with `defined?` without parentheses. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15839](https://github.com/rubocop/rubocop/pull/15839): Fix an incorrect autocorrect for `Style/MultilineTernaryOperator` with `yield` and `super`. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15969](https://github.com/rubocop/rubocop/pull/15969): Fix an incorrect autocorrect for `Style/MultilineWhenThen` with an endless range condition. (\[[@&#8203;Starlexxx](https://github.com/Starlexxx)]\[]) - [#&#8203;15902](https://github.com/rubocop/rubocop/pull/15902): Fix an incorrect autocorrect for `Style/MutableConstant` with `Recursive: true` and trailing comma cops. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15840](https://github.com/rubocop/rubocop/pull/15840): Fix an incorrect autocorrect for `Style/NegatedIfElseCondition` with `then` or a semicolon after the condition. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15840](https://github.com/rubocop/rubocop/pull/15840): Fix an incorrect autocorrect for `Style/NestedModifier` with low-precedence operands. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15839](https://github.com/rubocop/rubocop/pull/15839): Fix an incorrect autocorrect for `Style/NestedTernaryOperator` when the ternary follows `return` or is a command argument, or when the `if` branch has parentheses that do not wrap all of it. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15864](https://github.com/rubocop/rubocop/pull/15864): Fix an incorrect autocorrect for `Style/NestedTernaryOperator` with a heredoc. (\[[@&#8203;Starlexxx](https://github.com/Starlexxx)]\[]) - [#&#8203;15847](https://github.com/rubocop/rubocop/pull/15847): Fix an incorrect autocorrect for `Style/NestedTernaryOperator` when the ternary is the operand of `not` or `defined?` without parentheses. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15841](https://github.com/rubocop/rubocop/pull/15841): Fix an incorrect autocorrect for `Style/Next` with heredocs and multiline string literals. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15830](https://github.com/rubocop/rubocop/pull/15830): Fix an incorrect autocorrect for `Style/NilComparison` when a method is called on `nil?`. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15960](https://github.com/rubocop/rubocop/pull/15960): Fix an incorrect autocorrect for `Style/NilComparison` with a leading dot. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15806](https://github.com/rubocop/rubocop/pull/15806): Fix an incorrect autocorrect for `Style/NonNilCheck` when the receiver is a unary operation, such as `!a != nil`. (\[[@&#8203;viralpraxis](https://github.com/viralpraxis)]\[]) - [#&#8203;15827](https://github.com/rubocop/rubocop/pull/15827): Fix an incorrect autocorrect for `Style/Not` with a unary `~` operand. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15807](https://github.com/rubocop/rubocop/pull/15807): Fix an incorrect autocorrect for `Style/NumericPredicate` when the receiver is a unary operation, such as `-a < 0`. (\[[@&#8203;viralpraxis](https://github.com/viralpraxis)]\[]) - [#&#8203;15886](https://github.com/rubocop/rubocop/pull/15886): Fix an incorrect autocorrect for `Style/NumericPredicate` with `EnforcedStyle: comparison` in an operand. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15849](https://github.com/rubocop/rubocop/pull/15849): Fix an incorrect autocorrect for `Style/OneLineConditional` with a post-condition loop branch. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15851](https://github.com/rubocop/rubocop/pull/15851): Fix an incorrect autocorrect for `Style/OneLineConditional` with a constant scope or a ternary condition. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15839](https://github.com/rubocop/rubocop/pull/15839): Fix an incorrect autocorrect for `Style/OneLineConditional` when a branch uses a modifier `rescue`/`while`/`until` or a one-line pattern match, or when the conditional is the receiver of a method call. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15843](https://github.com/rubocop/rubocop/pull/15843): Fix an incorrect autocorrect for `Style/PercentLiteralDelimiters` with an escaped delimiter. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15835](https://github.com/rubocop/rubocop/pull/15835): Fix an incorrect autocorrect for `Style/ReduceToHash` with a key or a value that is not an array element. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15841](https://github.com/rubocop/rubocop/pull/15841): Fix an incorrect autocorrect for `Style/RedundantBegin` with low precedence statements and multiline `return` values. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15841](https://github.com/rubocop/rubocop/pull/15841): Fix an incorrect autocorrect for `Style/RedundantCondition` with a low precedence `else` branch. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15841](https://github.com/rubocop/rubocop/pull/15841): Fix an incorrect autocorrect for `Style/RedundantCondition` with operator method branches. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15909](https://github.com/rubocop/rubocop/pull/15909): Fix an incorrect autocorrect for `Style/RedundantDoubleSplatHashBraces` with `Style/TrailingCommaInHashLiteral`. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15841](https://github.com/rubocop/rubocop/pull/15841): Fix an incorrect autocorrect for `Style/RedundantException` with a compound message. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15663](https://github.com/rubocop/rubocop/issues/15663): Fix an incorrect autocorrect for `Style/RedundantFetchBlock` when `fetch` is called with a splat, an anonymous rest argument, or keyword arguments. (\[[@&#8203;ihamzatarar](https://github.com/ihamzatarar)]\[]) - [#&#8203;15811](https://github.com/rubocop/rubocop/pull/15811): Fix an incorrect autocorrect for `Style/RedundantParentheses` with a heredoc and a chained call. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15825](https://github.com/rubocop/rubocop/pull/15825): Fix an incorrect autocorrect for `Style/RedundantParentheses` with a heredoc opened on the closing parenthesis line. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15798](https://github.com/rubocop/rubocop/pull/15798): Fix an incorrect autocorrect for `Style/RedundantRegexpArgument` with an escaped `#{`. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15843](https://github.com/rubocop/rubocop/pull/15843): Fix an incorrect autocorrect for `Style/RedundantRegexpConstructor` with an ambiguous slash regexp. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15810](https://github.com/rubocop/rubocop/pull/15810): Fix an incorrect autocorrect for `Style/RedundantRegexpEscape` cop when `Style/RegexpLiteral` changes the delimiters of the same regexp in the same pass. (\[[@&#8203;Starlexxx](https://github.com/Starlexxx)]\[]) - [#&#8203;15819](https://github.com/rubocop/rubocop/pull/15819): Fix an incorrect autocorrect for `Style/RegexpLiteral` when a `%r` literal whose body starts with a newline is passed to a method without parentheses. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15809](https://github.com/rubocop/rubocop/pull/15809): Fix an incorrect autocorrect for `Style/RegexpLiteral` with a slash inside an interpolation. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15823](https://github.com/rubocop/rubocop/pull/15823): Fix an incorrect autocorrect for `Style/RegexpLiteral` when a `%r` literal escapes its own delimiter in the body. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15993](https://github.com/rubocop/rubocop/pull/15993): Fix an incorrect autocorrect for `Style/RequireOrder` with a `require` sharing its line. (\[[@&#8203;Starlexxx](https://github.com/Starlexxx)]\[]) - [#&#8203;15843](https://github.com/rubocop/rubocop/pull/15843): Fix an incorrect autocorrect for `Style/RescueModifier` with a nested heredoc. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15991](https://github.com/rubocop/rubocop/pull/15991): Fix an incorrect autocorrect for `Style/ReturnNilInPredicateMethodDefinition` with `return` as an operand of `||`. (\[[@&#8203;Starlexxx](https://github.com/Starlexxx)]\[]) - [#&#8203;16014](https://github.com/rubocop/rubocop/pull/16014): Fix an incorrect autocorrect for `Style/ReturnNilInPredicateMethodDefinition` with `return` in a ternary branch. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15877](https://github.com/rubocop/rubocop/pull/15877): Fix an incorrect autocorrect for `Style/ReturnNil` with an operand `return`. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15842](https://github.com/rubocop/rubocop/pull/15842): Fix an incorrect autocorrect for `Style/SingleLineMethods` with `Style/EndlessMethod` when the method body is an `and`/`or` operation, a multiple assignment or an assignment of a command call. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15916](https://github.com/rubocop/rubocop/pull/15916): Fix an incorrect autocorrect for `Style/SingleLineMethods` with unparenthesized parameters. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15737](https://github.com/rubocop/rubocop/pull/15737): Fix an incorrect autocorrect for `Style/StabbyLambdaParentheses` when using `EnforcedStyle: require_no_parentheses` and a lambda argument has a default value containing a brace, such as `->(x = {})`. (\[[@&#8203;viralpraxis](https://github.com/viralpraxis)]\[]) - [#&#8203;15744](https://github.com/rubocop/rubocop/pull/15744): Fix an incorrect autocorrect for `Style/StabbyLambdaParentheses` when using `EnforcedStyle: require_no_parentheses` and a line break or comment separates the parentheses from the arguments. (\[[@&#8203;viralpraxis](https://github.com/viralpraxis)]\[]) - [#&#8203;15899](https://github.com/rubocop/rubocop/pull/15899): Fix an incorrect autocorrect for `Style/StringConcatenation` with quotes in an interpolated percent literal. (\[[@&#8203;Starlexxx](https://github.com/Starlexxx)]\[]) - [#&#8203;15999](https://github.com/rubocop/rubocop/pull/15999): Fix an incorrect autocorrect for `Style/SymbolProc` with a lambda literal in a pattern. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15839](https://github.com/rubocop/rubocop/pull/15839): Fix an incorrect autocorrect for `Style/TernaryParentheses` with a condition binding looser than `?:`. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15838](https://github.com/rubocop/rubocop/pull/15838): Fix an incorrect autocorrect for `Style/TrailingUnderscoreVariable` with a nested group of underscores or a bracketless list of values. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15840](https://github.com/rubocop/rubocop/pull/15840): Fix an incorrect autocorrect for `Style/WhileUntilModifier` with a `begin` block body. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15883](https://github.com/rubocop/rubocop/pull/15883): Fix an incorrect autocorrect for `Style/YodaExpression` with a splat argument. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15754](https://github.com/rubocop/rubocop/pull/15754): Fix an infinite loop between `Layout/EmptyLinesAroundBlockBody`, `Layout/EmptyLinesAroundClassBody` or `Layout/EmptyLinesAroundModuleBody` with `EnforcedStyle: empty_lines` and a cop indenting the same `end`, such as `Layout/BlockAlignment` or `Layout/EndAlignment`. (\[[@&#8203;viralpraxis](https://github.com/viralpraxis)]\[]) - [#&#8203;15845](https://github.com/rubocop/rubocop/pull/15845): Fix an infinite loop for `Layout/BlockAlignment` with `Layout/IndentationStyle` enforcing tabs when `end` is already indented like the line the block starts on. (\[[@&#8203;viralpraxis](https://github.com/viralpraxis)]\[]) - [#&#8203;15792](https://github.com/rubocop/rubocop/pull/15792): Fix an infinite loop for `Layout/BlockAlignment` with `Layout/IndentationStyle` enforcing tabs. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15778](https://github.com/rubocop/rubocop/pull/15778): Fix an infinite loop for `Layout/CaseIndentation` with `Layout/IndentationStyle` enforcing tabs. (\[[@&#8203;viralpraxis](https://github.com/viralpraxis)]\[]) - [#&#8203;15837](https://github.com/rubocop/rubocop/pull/15837): Fix an infinite loop for `Layout/DefEndAlignment` with a single-line `def` after a line continuation. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15910](https://github.com/rubocop/rubocop/pull/15910): Fix an infinite loop for `Layout/EmptyLineAfterMultilineCondition` with a modifier `while`. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15985](https://github.com/rubocop/rubocop/pull/15985): Fix an infinite loop for `Layout/EmptyLineAfterMultilineCondition` with a body on the condition line. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15892](https://github.com/rubocop/rubocop/pull/15892): Fix an infinite loop for `Layout/EmptyLinesAroundAttributeAccessor` with code on the same line. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15814](https://github.com/rubocop/rubocop/pull/15814): Fix an infinite loop for `Layout/EmptyLinesAroundExceptionHandlingKeywords` with an empty clause. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15820](https://github.com/rubocop/rubocop/pull/15820): Fix an infinite loop for `Layout/EndAlignment` with `EnforcedStyleAlignWith: variable`. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15759](https://github.com/rubocop/rubocop/pull/15759): Fix an infinite loop for `Layout/ExtraSpacing` with an assignment behind a comparison. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15980](https://github.com/rubocop/rubocop/pull/15980): Fix an infinite loop for `Layout/FirstArgumentIndentation` with a method chain beginning its line. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15857](https://github.com/rubocop/rubocop/pull/15857): Fix an infinite loop for `Layout/FirstHashElementIndentation` when `Layout/HashAlignment` uses the separator style and a key spans several lines. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15821](https://github.com/rubocop/rubocop/pull/15821): Fix an infinite loop for `Layout/HashAlignment` with a key spanning multiple lines. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15901](https://github.com/rubocop/rubocop/pull/15901): Fix an infinite loop for `Layout/HeredocArgumentClosingParenthesis` with a heredoc in a block argument. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15693](https://github.com/rubocop/rubocop/pull/15693): Fix an infinite loop for `Layout/IndentationStyle` when using `EnforcedStyle: tabs` and a line is aligned with spaces following the indenting tab. (\[[@&#8203;viralpraxis](https://github.com/viralpraxis)]\[]) - [#&#8203;15958](https://github.com/rubocop/rubocop/pull/15958): Fix an infinite loop for `Layout/IndentationWidth` with an inline access modifier and `outdent` access modifier style. (\[[@&#8203;Starlexxx](https://github.com/Starlexxx)]\[]) - [#&#8203;15925](https://github.com/rubocop/rubocop/pull/15925): Fix an infinite loop for `Layout/LineEndStringConcatenationIndentation` with a long run of misaligned parts. (\[[@&#8203;Starlexxx](https://github.com/Starlexxx)]\[]) - [#&#8203;15787](https://github.com/rubocop/rubocop/pull/15787): Fix an infinite loop for `Layout/LineLength` cop with `SplitStrings: true` when the limit falls right after a string's opening quote. (\[[@&#8203;Starlexxx](https://github.com/Starlexxx)]\[]) - [#&#8203;15982](https://github.com/rubocop/rubocop/pull/15982): Fix an infinite loop for `Layout/LineLength` with a string starting past the limit. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15791](https://github.com/rubocop/rubocop/pull/15791): Fix an infinite loop for `Layout/LineLength` with a string starting with an interpolation. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15981](https://github.com/rubocop/rubocop/pull/15981): Fix an infinite loop for `Layout/RedundantLineBreak` with offenses sharing a line. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15769](https://github.com/rubocop/rubocop/pull/15769): Fix an infinite loop for `Layout/RescueEnsureAlignment` with `Layout/IndentationStyle` enforcing tabs. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15763](https://github.com/rubocop/rubocop/pull/15763): Fix an infinite loop between `Layout/SpaceAroundBlockParameters`, `Layout/SpaceInsideParens` and `Layout/ExtraSpacing` when both cops require a space inside a lambda's parameter parentheses. (\[[@&#8203;viralpraxis](https://github.com/viralpraxis)]\[]) - [#&#8203;15874](https://github.com/rubocop/rubocop/pull/15874): Fix an infinite loop for `Layout/SpaceAroundBlockParameters` with a trailing comma. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15997](https://github.com/rubocop/rubocop/pull/15997): Fix an infinite loop for `Layout/SpaceInsideArrayLiteralBrackets` with `EnforcedStyle: compact`. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15719](https://github.com/rubocop/rubocop/pull/15719): Fix an infinite loop for `Layout/SpaceInsideBlockBraces` when using `EnforcedStyle: no_space` and a multiline block's closing brace is not preceded by a space. (\[[@&#8203;viralpraxis](https://github.com/viralpraxis)]\[]) - [#&#8203;15722](https://github.com/rubocop/rubocop/pull/15722): Fix false positives in `Layout/SpaceInsideBlockBraces` with `EnforcedStyle: no_space` when a multiline block without block parameters has a line break after the opening brace. (\[[@&#8203;viralpraxis](https://github.com/viralpraxis)]\[]) - [#&#8203;15983](https://github.com/rubocop/rubocop/pull/15983): Fix an infinite loop for `Layout/SpaceInsideBlockBraces` with a comment after the left brace. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15816](https://github.com/rubocop/rubocop/pull/15816): Fix an infinite loop for `Layout/SpaceInsideBlockBraces` with `Layout/BlockAlignment` when a leading-dot chained block has its closing brace on its own line. (\[[@&#8203;viralpraxis](https://github.com/viralpraxis)]\[]) - [#&#8203;15837](https://github.com/rubocop/rubocop/pull/15837): Fix an infinite loop for `Lint/AmbiguousOperatorPrecedence` with an operator method called with a dot. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15880](https://github.com/rubocop/rubocop/pull/15880): Fix an infinite loop for `Lint/LiteralInInterpolation` with `Layout/SpaceInsideStringInterpolation`. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15837](https://github.com/rubocop/rubocop/pull/15837): Fix an infinite loop for `Lint/LiteralInInterpolation` with an ideographic space at the end of a heredoc line. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15837](https://github.com/rubocop/rubocop/pull/15837): Fix an infinite loop for `Style/EmptyMethod` with a multiline argument. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15738](https://github.com/rubocop/rubocop/pull/15738): Fix an infinite loop for `Style/EndlessMethod` when tab indentation or a trailing comment puts the endless method definition over `Layout/LineLength`. (\[[@&#8203;viralpraxis](https://github.com/viralpraxis)]\[]) - [#&#8203;15956](https://github.com/rubocop/rubocop/pull/15956): Fix an infinite loop for `Style/EndlessMethod` with `Layout/SpaceInsideParens` adding spaces to new parentheses. (\[[@&#8203;Starlexxx](https://github.com/Starlexxx)]\[]) - [#&#8203;15950](https://github.com/rubocop/rubocop/pull/15950): Fix an infinite loop for `Style/HashLookupMethod` with `Style/FetchEnvVar`. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15894](https://github.com/rubocop/rubocop/pull/15894): Fix an infinite loop for `Style/MethodCallWithArgsParentheses` with anonymous rest arguments forwarding. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15755](https://github.com/rubocop/rubocop/pull/15755): Fix an infinite loop for `Style/MultilineMethodSignature` when a method definition is preceded by other code on the same line, such as `private def`, and joining the signature would exceed `Layout/LineLength`. (\[[@&#8203;viralpraxis](https://github.com/viralpraxis)]\[]) - [#&#8203;15884](https://github.com/rubocop/rubocop/pull/15884): Fix an infinite loop for `Style/MultilineMethodSignature` with a multiline parameter. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15723](https://github.com/rubocop/rubocop/pull/15723): Fix an infinite loop for `Style/MutableConstant` when a constant is assigned a method call with arguments and without parentheses. (\[[@&#8203;viralpraxis](https://github.com/viralpraxis)]\[]) - [#&#8203;15933](https://github.com/rubocop/rubocop/pull/15933): Fix an infinite loop for `Style/MutableConstant` with `EnforcedStyle: strict` and a chained assignment. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15891](https://github.com/rubocop/rubocop/pull/15891): Fix an infinite loop for `Style/MutableConstant` with `EnforcedStyle: strict` and a logical operator. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15885](https://github.com/rubocop/rubocop/pull/15885): Fix an infinite loop for `Style/MutableConstant` with `EnforcedStyle: strict` and a parenthesized value. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15846](https://github.com/rubocop/rubocop/pull/15846): Fix an infinite loop for `Style/RedundantBegin` cop when joining a single statement onto the assignment line would exceed `Layout/LineLength`. (\[[@&#8203;Starlexxx](https://github.com/Starlexxx)]\[]) - [#&#8203;15837](https://github.com/rubocop/rubocop/pull/15837): Fix an infinite loop for `Style/RedundantParentheses` with a setter in an empty condition. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15872](https://github.com/rubocop/rubocop/pull/15872): Fix an infinite loop for `Style/ReturnNil` with a top-level `return`. (\[[@&#8203;Starlexxx](https://github.com/Starlexxx)]\[]) - [#&#8203;15690](https://github.com/rubocop/rubocop/pull/15690): Fix `Style/DisableCopsWithinSourceCodeDirective` to no longer autocorrect by removing a directive that only lacks a `--` justification when `AllowWithReason` is enabled. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;16001](https://github.com/rubocop/rubocop/pull/16001): Fix `autocorrect_incompatible_with` being ignored when the declaring cop runs last. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15935](https://github.com/rubocop/rubocop/pull/15935): Fix cop errors not failing a run that inspects files in parallel. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15784](https://github.com/rubocop/rubocop/pull/15784): Fix `rubocop:enable-next`, `rubocop:push` and `rubocop:next` directives not running cops disabled in the configuration when given a department name. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;16009](https://github.com/rubocop/rubocop/pull/16009): Fix the documentation URL of cops with digits in their names, such as `Lint/UselessRuby2Keywords`, which dropped the digits from the anchor. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15786](https://github.com/rubocop/rubocop/pull/15786): Fix an incorrect autocorrect for `Lint/MisplacedMagicComment` when a misplaced `encoding` comment overrode an effective one. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15945](https://github.com/rubocop/rubocop/pull/15945): Fix MCP autocorrection rewriting files it has nothing to correct in. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15937](https://github.com/rubocop/rubocop/pull/15937): Fix the ignored `--parallel` notice being shown for `--no-parallel`. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15908](https://github.com/rubocop/rubocop/pull/15908): Fix false negatives for `Layout/EmptyLines` with CRLF line endings. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15771](https://github.com/rubocop/rubocop/pull/15771): Fix false negatives for `Style/AmbiguousEndlessMethodDefinition` cop with singleton methods. (\[[@&#8203;Starlexxx](https://github.com/Starlexxx)]\[]) - [#&#8203;15836](https://github.com/rubocop/rubocop/issues/15836): Fix false negatives in `Style/SelfAssignment` with a parenthesized right-hand side. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15761](https://github.com/rubocop/rubocop/issues/15761): Fix false positive for `Layout/MultilineMethodCallIndentation` when a method chain is inside a block, `begin`, `if` or loop body in a hash pair value. (\[[@&#8203;amritk](https://github.com/amritk)]\[]) - [#&#8203;14520](https://github.com/rubocop/rubocop/issues/14520): Fix false positives for `Lint/UselessAssignment` when a loop condition variable is reassigned in a loop body inside a method. (\[[@&#8203;mattyb](https://github.com/mattyb)]\[]) - [#&#8203;15803](https://github.com/rubocop/rubocop/issues/15803): Fix false positives for `Lint/UselessAssignment` when a variable reassigned in a conditional in `begin` is referenced in `rescue`. (\[[@&#8203;mattyb](https://github.com/mattyb)]\[]) - [#&#8203;15822](https://github.com/rubocop/rubocop/pull/15822): Fix false positives in `Layout/CaseIndentation` when using `IndentOneStep: true` with tab indentation. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15828](https://github.com/rubocop/rubocop/pull/15828): Fix false positives in `Layout/SpaceAfterNot` when the argument is a unary `~`. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15829](https://github.com/rubocop/rubocop/pull/15829): Fix false positives in `Style/DoubleNegation` when using three or more negations. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15783](https://github.com/rubocop/rubocop/pull/15783): Fix `--changed` missing untracked files outside the current directory when run from a subdirectory. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15838](https://github.com/rubocop/rubocop/pull/15838): Fix incorrect autocorrects for `Lint/LiteralAsCondition` with an `if` used as a value or a post-loop containing `break`, `next` or `redo`. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15779](https://github.com/rubocop/rubocop/pull/15779): Fix `--diff` writing the corrected file to disk, and leaving the removal out of the patch, when the file has a redundant `rubocop:disable`. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15363](https://github.com/rubocop/rubocop/issues/15363): Fix `Lint/RedundantCopDisableDirective` reporting directives for cops that only the preview defaults disable, which are needed again once preview is off. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15959](https://github.com/rubocop/rubocop/pull/15959): Fix MCP autocorrection leaving a file truncated when the disk fills up while it is being written. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15786](https://github.com/rubocop/rubocop/pull/15786): Fix an incorrect autocorrect for `Lint/MisplacedMagicComment` that pushed an effective `encoding` comment off the first line when moving a `frozen_string_literal` comment. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15751](https://github.com/rubocop/rubocop/pull/15751): Fix an infinite loop when autocorrecting `Layout/HashAlignment` with `EnforcedHashRocketStyle: separator` together with `Layout/SpaceAroundOperators` by aligning values one space after the separator instead of copying the first pair's value spacing. (\[[@&#8203;Starlexxx](https://github.com/Starlexxx)]\[]) - [#&#8203;15717](https://github.com/rubocop/rubocop/pull/15717): Fix an infinite loop when autocorrecting `Layout/HashAlignment` with `EnforcedHashRocketStyle: separator` together with `Layout/SpaceAroundOperators` by skipping offenses for keys that are too wide to right-align with the first key. (\[[@&#8203;Starlexxx](https://github.com/Starlexxx)]\[]) - [#&#8203;15692](https://github.com/rubocop/rubocop/pull/15692): Fix `Parser::ClobberingError` for `Layout/RedundantLineBreak` when autocorrecting nested assignments with a multiline right-hand side. (\[[@&#8203;Starlexxx](https://github.com/Starlexxx)]\[]) - [#&#8203;15713](https://github.com/rubocop/rubocop/pull/15713): Fix an infinite loop when autocorrecting `Layout/SpaceAroundKeyword` together with `Layout/SpaceBeforeBlockBraces` with `EnforcedStyle: no_space` for a keyword followed by a brace block. (\[[@&#8203;Starlexxx](https://github.com/Starlexxx)]\[]) - [#&#8203;15948](https://github.com/rubocop/rubocop/pull/15948): Fix the LSP server applying contextual corrections while editing for the rest of a session after a cop fails during a format command. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15923](https://github.com/rubocop/rubocop/pull/15923): Fix MCP requests failing outright when a cop crashes. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15945](https://github.com/rubocop/rubocop/pull/15945): Fix offenses that autocorrection leaves being reported twice when it removes a redundant directive. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15711](https://github.com/rubocop/rubocop/pull/15711): Fix pending cops being dropped when two departments share a cop name. (\[[@&#8203;bquorning](https://github.com/bquorning)]\[]) - [#&#8203;15131](https://github.com/rubocop/rubocop/issues/15131): Fix false negatives for unparenthesized bitwise operations and prevent conflicting `Style/NumericPredicate` autocorrections. (\[[@&#8203;saidM](https://github.com/saidM)]\[]) - [#&#8203;9325](https://github.com/rubocop/rubocop/issues/9325): Fix preview not merging an inherited `Exclude` when `AllCops: Preview` comes after the cop in an inherited file, or from an earlier file in `inherit_from`. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15363](https://github.com/rubocop/rubocop/issues/15363): Fix `AllCops: Preview` being ignored, and `--preview` leaking into the default configuration, when an extension injects defaults via `ConfigLoader.inject_defaults!` or a plugin is loaded. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15937](https://github.com/rubocop/rubocop/pull/15937): Fix the notice that `--parallel` is being ignored going to stdout, where it broke `--format json` output. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15959](https://github.com/rubocop/rubocop/pull/15959): Fix MCP tools answering an argument they don't take with an internal error rather than a tool error that names it. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15363](https://github.com/rubocop/rubocop/issues/15363): Fix an invalid `AllCops: Preview` value being silently treated as `false` instead of rejected. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15957](https://github.com/rubocop/rubocop/pull/15957): Fix the MCP server reporting length and complexity offenses on a definition's first line only, and syntax errors without the parser version, unlike `--format json`. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15782](https://github.com/rubocop/rubocop/pull/15782): Fix the SARIF formatter reporting `note` as the default level of `Security` cops, whose results are reported as `warning`. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15783](https://github.com/rubocop/rubocop/pull/15783): Fix `--changed` skipping staged files in a repository without any commits. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15782](https://github.com/rubocop/rubocop/pull/15782): Fix the SARIF formatter giving repeated offenses of a cop on identical line text the same fingerprint, which let GitHub code scanning merge them into one alert. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15782](https://github.com/rubocop/rubocop/pull/15782): Fix `--format sarif` output being followed by the diff under `--diff` or the corrected source under `--stdin --autocorrect`, which made it invalid JSON. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15720](https://github.com/rubocop/rubocop/issues/15720): Fix `rubocop -a` leaving the file empty when interrupted while writing the corrected source, by writing to a temporary file in the same directory and renaming it over the original. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15959](https://github.com/rubocop/rubocop/pull/15959): Fix the MCP server's setup advice limiting the `mcp` gem to versions below 1.0. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15784](https://github.com/rubocop/rubocop/pull/15784): Fix `Style/DisableCopsWithinSourceCodeDirective` ignoring the obsolete `AllowTrailingComment` setting instead of treating it as `AllowWithReason`. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15784](https://github.com/rubocop/rubocop/pull/15784): Fix `Style/DisableCopsWithinSourceCodeDirective` ignoring `AllowedCops` for `rubocop:push`/`rubocop:next` arguments and leaving an orphan `rubocop:pop` when correcting a `rubocop:push`. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;16007](https://github.com/rubocop/rubocop/pull/16007): Fix `Style/ExactRegexpMatch` treating `string === regexp` as a regexp match. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15741](https://github.com/rubocop/rubocop/pull/15741): Fix an incorrect autocorrect for `Style/MethodCallWithArgsParentheses` with `EnforcedStyle: require_parentheses` when the argument is a grouped expression containing a keyword operator, modifier, or multiple statements. (\[[@&#8203;Starlexxx](https://github.com/Starlexxx)]\[]) - [#&#8203;15712](https://github.com/rubocop/rubocop/pull/15712): Fix an infinite loop when autocorrecting `Style/MissingElse` together with `Style/GuardClause` when the conditional branch is a guard clause. (\[[@&#8203;Starlexxx](https://github.com/Starlexxx)]\[]) - [#&#8203;15995](https://github.com/rubocop/rubocop/pull/15995): Fix `Style/Semicolon` dropping arguments and erroring on `yield`/`super` with hash value omission. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15783](https://github.com/rubocop/rubocop/pull/15783): Fix `--changed lib` failing with an error instead of inspecting the changed files under `lib`. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;16001](https://github.com/rubocop/rubocop/pull/16001): Fix the obsolete config message for a removed cop without alternatives. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;16012](https://github.com/rubocop/rubocop/pull/16012): Fix the `offenses` and `worst` formatters printing "Total in 1 files". (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) ##### Changes - [#&#8203;16010](https://github.com/rubocop/rubocop/pull/16010): Load `net/http` only when a remote config is fetched, instead of on every run. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15732](https://github.com/rubocop/rubocop/issues/15732): Check `requires_gem` requirements against `target_gem_version`, so that an extension can honor its own target version setting under `AllCops`, like `TargetRailsVersion`, by overriding it. (\[[@&#8203;koic](https://github.com/koic)]\[]) - [#&#8203;15843](https://github.com/rubocop/rubocop/pull/15843): Mark `Style/NegativeArrayIndex` as unsafe. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15896](https://github.com/rubocop/rubocop/pull/15896): Report offenses from the MCP server's `rubocop_inspection` tool in the `--format json` shape instead of as LSP diagnostics, with inline code results in the same files-and-summary form as file results. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) - [#&#8203;15701](https://github.com/rubocop/rubocop/pull/15701): Make `--show-cops` and `--show-docs-url` report unrecognized cop names and exit non-zero, instead of silently ignoring them. (\[[@&#8203;bbatsov](https://github.com/bbatsov)]\[]) </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - "before 8am on saturday" - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xMzguMCIsInVwZGF0ZWRJblZlciI6IjQ0LjEzOC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Update dependency rubocop to v1.92.0
Some checks failed
Dependencies / update (push) Successful in 45s
CI / test (pull_request) Failing after 1m0s
CI / lint (pull_request) Failing after 1m1s
CI / annotate-diff-check (pull_request) Failing after 1m3s
08ee3fd1dc
Update gemset.nix
All checks were successful
CI / test (pull_request) Successful in 1m7s
CI / lint (pull_request) Successful in 1m1s
CI / annotate-diff-check (pull_request) Successful in 1m4s
Dependencies / update (push) Has been skipped
CI / test (push) Successful in 57s
CI / lint (push) Successful in 53s
CI / annotate-diff-check (push) Successful in 56s
5a1d0e72c6
Author
Collaborator

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

### Edited/Blocked Notification Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. ⚠️ **Warning**: custom changes will be lost.
chvp approved these changes 2026-10-10 15:32:50 +02:00
chvp merged commit 5a1d0e72c6 into main 2026-10-10 15:32:54 +02:00
chvp deleted branch renovate/rubocop-1.x-lockfile 2026-10-10 15:32:54 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
chvp/de-lijst!17
No description provided.