Bug fixes
- #16063: Fix an error for
Layout/HashAlignmentwith a key spanning multiple lines. (@koic) - #15776: Fix an error in server mode when the configuration file is missing or empty. (@MIbtehajNasar)
- #15939: Fix an error for
Style/ClassAndModuleChildrenwhen compacting a namespace that contains another compactable one. (@Starlexxx) - #16047: Fix an error for
Style/ClassMethodsDefinitionswith a nestedclass << self. (@Starlexxx) - #16041: Fix an error for
Style/EmptyStringInsideInterpolationwith nested conditionals. (@koic) - #16067: Fix an error for
Style/RedundantInterpolationUnfreezewith an unfrozen string interpolated into another one. (@Starlexxx) - #16055: Fix an error for
Style/RescueModifierwith a rescue modifier in the rescue body of another one. (@Starlexxx) - #15968: Fix an error when the target Ruby version lookup cannot list a directory for a gemspec or read a version file or lockfile, and stop the gemspec search at the project root. (@koic)
- #16073: Fix an incorrect autocorrect for
Layout/ClassStructurewith code after a heredoc. (@koic) - #16026: Fix an incorrect autocorrect for
Layout/DotPositionwith a dot removed by another cop. (@koic) - #16107: Fix an incorrect autocorrect for
Layout/HeredocArgumentClosingParenthesiswithLayout/MultilineMethodCallBraceLayout. (@koic) - #16117: Fix an incorrect autocorrect for
Layout/LineLengthwith an unparenthesized method definition. (@koic) - #16061: Fix an incorrect autocorrect for
Layout/MultilineHashBraceLayoutwith a nested literal. (@koic) - #16033: Fix an incorrect autocorrect for
Layout/MultilineMethodCallIndentationwith a single-line block. (@koic) - #16077: Fix an incorrect autocorrect for
Layout/SingleLineBlockChainwithStyle/RedundantSort. (@koic) - #16098: Fix an incorrect autocorrect for
Lint/AmbiguousRegexpLiteralwith a regexp hash key. (@koic) - #16086: Fix an incorrect autocorrect for
Lint/SymbolConversionwith hash value omission. (@koic) - #16099: Fix an incorrect autocorrect for
Naming/RescuedExceptionsVariableNamewithStyle/HashSyntax. (@koic) - #16023: Fix an incorrect autocorrect for
Style/AccessModifierDeclarationswithStyle/EndlessMethod. (@Starlexxx) - #16024: Fix an incorrect autocorrect for
Style/AccessModifierDeclarationswith an endless method command body. (@Starlexxx) - #16111: Fix an incorrect autocorrect for
Style/AccessModifierDeclarationswith an endless method with ado...endblock body. (@koic) - #16056: Fix an incorrect autocorrect for
Style/AndOrwith a safe navigation command call. (@Starlexxx) - #16043: Fix an incorrect autocorrect for
Style/AndOrwithStyle/ReturnNil. (@koic) - #16020: Fix an incorrect autocorrect for
Style/ArgumentsForwardingwhen another call forwards anonymous arguments without the block. (@Starlexxx) - #16038: Fix an incorrect autocorrect for
Style/ArgumentsForwardingwith index assignment and setter methods. (@koic) - #15067: Fix an incorrect autocorrect for
Style/CollectionQueryingwhencountis used without a block. (@Starlexxx, @wwenrr) - #16032: Fix an incorrect autocorrect for
Style/CombinableLoopswithLayout/BlockEndNewline. (@Starlexxx) - #16072: Fix an incorrect autocorrect for
Style/CombinableLoopswithLayout/RedundantLineBreak. (@koic) - #16036: Fix an incorrect autocorrect for
Style/ConcatArrayLiteralswith a multiline call without parentheses. (@koic) - #16100: Fix an incorrect autocorrect for
Style/EmptyStringInsideInterpolationwith a command call. (@koic) - #16023: Fix an incorrect autocorrect for
Style/EndlessMethodwith a command body in a method definition passed as an argument. (@Starlexxx) - #16110: Fix an incorrect autocorrect for
Style/EndlessMethodwith ado...endblock body in a method definition passed as an argument. (@koic) - #16042: Fix an incorrect autocorrect for
Style/EndlessMethodwith a negated command call. (@koic) - #16029: Fix an incorrect autocorrect for
Style/EndlessMethodwithStyle/GuardClause. (@koic) - #16058: Fix an incorrect autocorrect for
Style/EndlessMethodwithStyle/RaiseArgs. (@Starlexxx) - #16045: Fix an incorrect autocorrect for
Style/Forwith a numbered oritblock. (@koic) - #16046: Fix an incorrect autocorrect for
Style/Forwith block parameters invalid as loop variables. (@koic) - #16044: Fix an incorrect autocorrect for
Style/ForwithStyle/ItBlockParameter. (@koic) - #16031: Fix an incorrect autocorrect for
Style/GuardClausewith a heredoc in a multiline guard clause. (@Starlexxx) - #16031: Fix an incorrect autocorrect for
Style/GuardClausewith a heredoc in the kept branch. (@Starlexxx) - #16021: Fix an incorrect autocorrect for
Style/HashAsLastArrayItemwithStyle/TrailingCommaInArrayLiteral. (@Starlexxx) - #16027: Fix an incorrect autocorrect for
Style/IfUnlessModifierwith a heredoc in the condition. (@koic) - #16025: Fix an incorrect autocorrect for
Style/Lambdawith extra spacing before the block. (@koic) - #16054: Fix an incorrect autocorrect for
Style/MethodCallWithArgsParentheseswith a trailing comma. (@koic) - #16080: Fix an incorrect autocorrect for
Style/MethodCallWithArgsParentheseswith a parenthesized argument. (@koic) - #16074: Fix an incorrect autocorrect for
Style/MethodCallWithArgsParentheseswith an assignment used as an argument. (@koic) - #16118: Fix an incorrect autocorrect for
Style/MethodDefParentheseswithLayout/LineLength. (@koic) - #16039: Fix an incorrect autocorrect for
Style/MixinGroupingwith parenthesized arguments. (@koic) - #16085: Fix an incorrect autocorrect for
Style/MutableConstantwith an omitted hash value. (@koic) - #16075: Fix an incorrect autocorrect for
Style/MutableConstantwithRecursive: trueandStyle/HashAsLastArrayItem. (@koic) - #16030: Fix an incorrect autocorrect for
Style/RaiseArgsdropping required parentheses. (@Starlexxx) - #16101: Fix an incorrect autocorrect for
Style/RedundantInterpolationUnfreezewithLayout/MultilineMethodCallBraceLayout. (@koic) - #16108: Fix an incorrect autocorrect for
Style/RedundantInterpolationUnfreezewith a comment. (@koic) - #16040: Fix an incorrect autocorrect for
Style/RedundantSelfAssignmentBranchwith assignment used as value. (@koic) - #16076: Fix an incorrect autocorrect for
Style/RedundantSortwith a line break before the accessor. (@koic) - #16102: Fix an incorrect autocorrect for
Style/RequireOrderwithout a trailing newline. (@koic) - #16037: Fix an incorrect autocorrect for
Style/SendWithLiteralMethodNamewithLayout/MultilineMethodArgumentLineBreaks. (@koic) - #16062: Fix an incorrect autocorrect for
Style/StructInheritancewithStyle/MethodCallWithArgsParentheses. (@koic) - #16103: Fix an incorrect autocorrect for
Style/SymbolProcwithStyle/TrailingCommaInArguments. (@koic) - #16048: Fix an infinite loop for
Layout/ArgumentAlignmentwith a binary operator. (@koic) - #16116: Fix an infinite loop for
Layout/EmptyLineAfterMultilineConditionwith a statement on the condition line. (@koic) - #16051: Fix an infinite loop for
Layout/EmptyLineAfterMultilineConditionwithrescue. (@koic) - #16059: Fix an infinite loop for
Layout/EmptyLinesAroundBlockBodywith block arguments on the next line. (@koic) - #16028: Fix an infinite loop for
Layout/EndAlignmentwith a conditional in a method argument. (@koic) - #16034: Fix an infinite loop for
Layout/FirstArgumentIndentationwith a multiline hash first argument. (@koic) - #15927: Fix an infinite loop for
Layout/FirstArrayElementLineBreakwithLayout/SpaceInsideArrayLiteralBracketscompact style. (@Starlexxx) - #16050: Fix an infinite loop for
Layout/FirstHashElementIndentationwith a double splat. (@koic) - #16069: Fix an infinite loop for
Layout/HeredocArgumentClosingParenthesiswith a HEREDOC nested in a hash argument. (@Starlexxx) - #16082: Fix an infinite loop for
Layout/IndentationConsistencywithLayout/IndentationWidthdisabled on a line. (@koic) - #16022: Fix an infinite loop for
Layout/LineLengthsplitting off a blank string. (@Starlexxx) - #16079: Fix an infinite loop for
Layout/LineLengthwithLayout/SpaceInsideArrayLiteralBracketscompact style. (@koic) - #16053: Fix an infinite loop for
Layout/LineLengthwith a run of spaces at the break. (@koic) - #16078: Fix an infinite loop for
Layout/LineLengthwith a very long string. (@koic) - #16035: Fix an infinite loop for
Layout/RedundantLineBreakwithLayout/ExtraSpacing. (@koic) - #16060: Fix an infinite loop for
Style/IfUnlessModifierwith multiple modifiers in a logical operator. (@koic) - #16049: Fix an infinite loop for
Style/IfUnlessModifierwith spaces inside parentheses. (@koic) - #16064: Fix an infinite loop for
Style/LambdawithLayout/SpaceInLambdaLiteral. (@koic) - #16052: Fix an infinite loop for
Style/LambdawithLayout/SpaceInsideParens. (@koic) - #16084: Fix an infinite loop for
Style/MutableConstantwith a splat in a frozen array. (@koic) - #16071: Fix an infinite loop for
Style/MutableConstantwithRecursive: trueand a hash without braces. (@koic) - #16018: Fix an infinite loop for
Style/RequireOrderwith a long list of unsorted requires. (@Starlexxx) - #16131: Fix
RuboCop::Cop::Badgeequality comparing only hash values, which could treat unrelated cops as the same on platforms with narrow object hashes such as Windows and JRuby. (@koic) - #16091: Fix
Style/BlockDelimitersmoving a trailing directive comment before the block. (@Starlexxx) - #16070: Fix false negatives for
Layout/SpaceInsideReferenceBracketswith chained reference brackets inside. (@koic) - #16083: Fix false positives for
Lint/SafeNavigationConsistencyacross||branches. (@koic) - #16119: Fix false positives in
Style/ItBlockParameterwhen a local variable nameditis in scope. (@koic) - #16120: Fix false positives in
Style/ItBlockParameterwhen the block reassigns its parameter. (@koic) - #16106: Fix an incorrect autocorrect for
Lint/HeredocMethodCallPositionwithStyle/MethodCallWithArgsParentheses. (@Starlexxx) - #15745: Make
Layout/ClassStructureaware of the symbol-list forms of visibility modifiers, such asprivate :foo, :barandprivate_class_method :foo. (@dduugg) - #16093: Fix a
Parser::ClobberingErrorforLint/NumberConversionwith a symbol conversion in a corrected receiver. (@Starlexxx) - #16109: Fix an incorrect autocorrect for
Style/ParenthesesAroundConditionwith a multiple assignment. (@Starlexxx) - #16113: Fix a
Parser::ClobberingErrorforStyle/RaiseArgswith araisenested in another. (@Starlexxx) - #16112: Fix an error for
Style/RedundantBeginwith a multilinebeginas the condition of a modifierif. (@Starlexxx) - #16095: Fix an infinite loop for
Layout/RedundantLineBreakwithLayout/LineLengthand tab indentation. (@Starlexxx) - #15745: Fix
Style/ClassMethodsDefinitionsandStyle/DocumentationMethodtreating methods named in a multi-symbolprivatecall as public, which made the former correctclass << selfto code raisingNameError. (@dduugg) - #16097: Fix an infinite loop for
Lint/UselessSetterCallwithLint/Voidininitializeand setter methods. (@Starlexxx)