Bug fixes
- #16166: Fix a false positive for
Layout/ExtraSpacingwhen uniformly padded tokens are aligned with differently spaced tokens in the same column. (@Don-Yin) - #16298: Fix a false positive for
Style/ParenthesesAroundConditionwith multiple expressions separated by a line break. (@APX403) - #16333: Fix an error for
Layout/EmptyLinesAroundExceptionHandlingKeywordswith an endless method. (@Starlexxx) - #16270: Fix an error for
Layout/FirstArgumentIndentationwith an inner call without parentheses. (@koic) - #16269: Fix an error for
Layout/MultilineArrayBraceLayoutwith an escaped newline as the last element. (@koic) - #16229: Fix an error for
Layout/MultilineMethodCallIndentationwith an implicitcall. (@koic) - #16280: Fix an error for
Lint/DuplicateMethodswith a non-symboldelegateoption key. (@Starlexxx) - #16226: Fix an error for
Lint/LiteralAsConditionwith a literal condition nested in a corrected node. (@koic) - #16268: Fix an error for
Lint/LiteralInInterpolationwith a beginless or endless range. (@koic) - #16187: Fix an error for
Lint/UselessAssignmentwith a non-ASCII named capture. (@maoxor) - #16272: Fix an error for
Lint/UselessAssignmentwith an operator assignment in a top level block call. (@koic) - #16259: Fix an error for
Naming/RescuedExceptionsVariableNamewith a method call onbegin. (@koic) - #16283: Fix an error for
Style/AccessModifierDeclarationswith code on the same line. (@koic) - #16284: Fix an error for
Style/ClassAndModuleChildrenwith a misaligned innerend. (@koic) - #16233: Fix an error for
Style/ClassMethodsDefinitionswith a method on theclass << selfline. (@koic) - #16285: Fix an error for
Style/EmptyStringInsideInterpolationwith anifwithoutelse. (@koic) - #16225: Fix an error for
Style/EndlessMethodwith a nested method definition. (@koic) - #16324: Fix an error for
Style/Forwith aforin the collection of anotherfor. (@Starlexxx) - #16266: Fix an error for
Style/Forwith aneachblock in the receiver. (@koic) - #16286: Fix an error for
Style/GuardClausewith empty parentheses as the body. (@koic) - #16227: Fix an error for
Style/HashFetchChainwhen the lastfetchhas no parentheses. (@koic) - #16231: Fix an error for
Style/Lambdawith a lambda in a default argument value. (@koic) - #16230: Fix an error for
Style/NonNilCheckwith a receiverlessnil?in anunlesscondition. (@koic) - #16433: Fix an error for
Style/OperatorMethodCallwith an operand without parentheses. (@bbatsov) - #16217: Fix an error for
Style/RedundantArrayConstructorwith a nestedArrayconstructor. (@Starlexxx) - #16258: Fix an error for
Style/RedundantBeginwith an emptybeginthat has anensure. (@Starlexxx) - #16228: Fix an error for
Style/RedundantEachwith a method argument. (@koic) - #16232: Fix an error for
Style/RedundantInitializeandStyle/DigChainwith a node without an end location. (@koic) - #16273: Fix an error for
Style/RedundantInterpolationwith a nested interpolation in an argument. (@koic) - #16218: Fix an error for
Style/SendWithLiteralMethodNamewith a string in an invalid encoding. (@Starlexxx) - #16239: Fix an error for
Style/SingleLineMethodswith an empty method defined in the body of another. (@Starlexxx) - #16222: Fix an error for
Style/StringConcatenationwith a parenthesized heredoc. (@Starlexxx) - #16274: Fix an incorrect autocorrect for cops adding a hash literal argument with
Style/MethodCallWithArgsParentheses. (@koic) - #16303: Fix an incorrect autocorrect for
Layout/BlockEndNewlinewith a heredoc and cops inserting after the closing brace. (@koic) - #16287: Fix an incorrect autocorrect for
Layout/BlockEndNewlinewith a HEREDOC ending before the last method call. (@koic) - #16302: Fix an incorrect autocorrect for
Layout/BlockEndNewlinewith code after the closing brace of a heredoc block. (@koic) - #15746: Fix an incorrect autocorrect for
Layout/ClassStructureleaving the moved element's blank-line separator behind. (@dduugg) - #15746: Fix an incorrect autocorrect for
Layout/ClassStructurewithStyle/AccessModifierDeclarations,Style/BisectedAttrAccessorandStyle/RedundantInitialize. (@dduugg) - #16368: Fix an incorrect autocorrect for
Layout/EmptyLineAfterGuardClausewith multiple statements inbegin. (@koic) - #16288: Fix an incorrect autocorrect for
Layout/EmptyLineAfterGuardClausewith a guard clause used as a value. (@koic) - #16304: Fix an incorrect autocorrect for
Layout/EmptyLinesAfterModuleInclusionwith a heredoc argument. (@koic) - #16369: Fix an incorrect autocorrect for
Layout/EmptyLinesAroundAccessModifierwithendright after the modifier. (@koic) - #16305: Fix an incorrect autocorrect for
Layout/EmptyLinesAroundBlockBodywith a body on the opening line. (@koic) - #16414: Fix an incorrect autocorrect for
Layout/HeredocArgumentClosingParenthesiswith code after the closing parenthesis. (@koic) - #16370: Fix an incorrect autocorrect for
Layout/MultilineArrayBraceLayoutandLayout/MultilineHashBraceLayoutwithStyle/MethodCallWithArgsParentheses. (@koic) - #16306: Fix an incorrect autocorrect for
Layout/MultilineArrayBraceLayoutwith a line continuation before the closing brace. (@koic) - #16181: Fix an incorrect autocorrect for
Layout/MultilineHashBraceLayoutwith a comment line before the closing brace. (@koic) - #16380: Fix an incorrect autocorrect for
Layout/MultilineMethodDefinitionBraceLayoutwithStyle/MethodDefParentheses. (@koic) - #16342: Fix an incorrect autocorrect for
Layout/SingleLineBlockChainwithStyle/CollectionQueryingand hash transform cops. (@koic) - #16328: Fix an incorrect autocorrect for
Lint/AmbiguousBlockAssociationwithStyle/AndOr. (@koic) - #16243: Fix an incorrect autocorrect for
Lint/AmbiguousOperatorPrecedencewithStyle/LineEndConcatenation. (@Starlexxx) - #16350: Fix an incorrect autocorrect for
Lint/AmbiguousRegexpLiteralwith a safe navigation call in an argument. (@koic) - #16344: Fix an incorrect autocorrect for
Lint/DeprecatedClassMethodswith a parenthesizedattr. (@Starlexxx) - #16351: Fix an incorrect autocorrect for
Lint/HashNewWithKeywordArgumentsAsDefaultwithout parentheses. (@koic) - #16352: Fix an incorrect autocorrect for
Lint/HeredocMethodCallPositionwith multiline brace layout cops. (@koic) - #16188: Fix an incorrect autocorrect for
Lint/InterpolationCheckwithyieldoutside a method. (@Starlexxx) - #16419: Fix an incorrect autocorrect for
Lint/LiteralAsConditionwhen removing a node where an expression is required. (@Starlexxx) - #16310: Fix an incorrect autocorrect for
Lint/LiteralInInterpolationwith a delimiter of the enclosing literal. (@koic) - #16376: Fix an incorrect autocorrect for
Lint/LiteralInInterpolationwith a double quote in a percent array. (@koic) - #16345: Fix an incorrect autocorrect for
Lint/LiteralInInterpolationwith cops changing the delimiters. (@Starlexxx) - #16316: Fix an incorrect autocorrect for
Lint/NonAtomicFileOperationwithStyle/MethodCallWithArgsParentheses. (@koic) - #16424: Fix an incorrect autocorrect for
Lint/NonAtomicFileOperationwith code afterend. (@koic) - #16408: Fix an incorrect autocorrect for
Lint/NumberConversionwithStyle/MethodCallWithArgsParenthesesandStyle/NestedParenthesizedCalls. (@koic) - #16245: Fix an incorrect autocorrect for
Lint/ParenthesesAsGroupedExpressionwith multiple statements. (@koic) - #16373: Fix an incorrect autocorrect for
Lint/ParenthesesAsGroupedExpressionwithStyle/RedundantParentheses. (@koic) - #16353: Fix an incorrect autocorrect for
Lint/ParenthesesAsGroupedExpressionwith empty parentheses. (@koic) - #16311: Fix an incorrect autocorrect for
Lint/ParenthesesAsGroupedExpressionwith a command call with adoblock. (@koic) - #16377: Fix an incorrect autocorrect for
Lint/ParenthesesAsGroupedExpressionwith a multiple assignment. (@koic) - #16356: Fix an incorrect autocorrect for
Lint/RedundantCopEnableDirectivewith text after the directive. (@koic) - #16354: Fix an incorrect autocorrect for
Lint/RedundantDirGlobSortwithLayout/DotPosition. (@koic) - #16375: Fix an incorrect autocorrect for
Lint/RedundantDirGlobSortwith a comment before a leading dot. (@koic) - #16406: Fix an incorrect autocorrect for
Lint/SafeNavigationChainwith an operator call as an argument. (@koic) - #16221: Fix an incorrect autocorrect for
Lint/SendWithMixinArgumentwhen the call is not a statement. (@Starlexxx) - #16355: Fix an incorrect autocorrect for
Lint/TrailingCommaInAttributeDeclarationwithStyle/MethodCallWithArgsParentheses. (@koic) - #16357: Fix an incorrect autocorrect for
Lint/TripleQuoteswithLint/ImplicitStringConcatenation. (@koic) - #16388: Fix an incorrect autocorrect for
Lint/UselessAssignmentwith an operator assignment whose value needs parentheses. (@Starlexxx) - #16335: Fix an incorrect autocorrect for
Lint/UselessTimeswith a reassigned block argument. (@koic) - #16336: Fix an incorrect autocorrect for
Lint/UselessTimeswith code after it on the same line. (@koic) - #16282: Fix an incorrect autocorrect for
Lint/Voidwith an interpolated literal. (@Starlexxx) - #16290: Fix an incorrect autocorrect for
Lint/Voidwith an operator method call with multiple or keyword arguments. (@koic) - #16326: Fix an incorrect autocorrect for
Naming/BlockForwardingwith an index call. (@koic) - #16236: Fix an incorrect autocorrect for
Naming/HeredocDelimiterCasewith a quote inside a quoted delimiter. (@Starlexxx) - #16321: Fix an incorrect autocorrect for
Style/AmbiguousEndlessMethodDefinitionwith a heredoc. (@koic) - #16398: Fix an incorrect autocorrect for
Style/AndOrwithStyle/OperatorMethodCall. (@koic) - #16399: Fix an incorrect autocorrect for
Style/BlockDelimiterswithStyle/RescueStandardError. (@koic) - #16213: Fix an incorrect autocorrect for
Style/CombinableLoopswithStyle/ItBlockParameter. (@koic) - #16400: Fix an incorrect autocorrect for
Style/CombinableLoopswithStyle/SymbolProc. (@koic) - #16402: Fix an incorrect autocorrect for
Style/ConcatArrayLiteralswith a trailing comma. (@koic) - #16307: Fix an incorrect autocorrect for
Style/DataInheritancewithStyle/MethodCallWithArgsParentheses. (@koic) - #16389: Fix an incorrect autocorrect for
Style/DefWithParentheseswith an endless method whose=is on the next line. (@Starlexxx) - #16214: Fix an incorrect autocorrect for
Style/EmptyClassDefinitionwith a top-level constant. (@Starlexxx) - #16292: Fix an incorrect autocorrect for
Style/EmptyLiteralwith an operator method argument. (@koic) - #16393: Fix an incorrect autocorrect for
Style/EmptyMethodwith a parenthesized receiver. (@koic) - #16367: Fix an incorrect autocorrect for
Style/EndlessMethodwithStyle/IdenticalConditionalBranches. (@koic) - #16365: Fix an incorrect autocorrect for
Style/EndlessMethodwith a command body outside a statement. (@koic) - #16394: Fix an incorrect autocorrect for
Style/EndlessMethodwith a parenthesized receiver. (@koic) - #16366: Fix an incorrect autocorrect for
Style/EndlessMethodwith cops unwrapping the body. (@koic) - #16220: Fix an incorrect autocorrect for
Style/ExplicitBlockArgumentwith a method call without parentheses as the last argument. (@Starlexxx) - #16195: Fix an incorrect autocorrect for
Style/Forwith a receiverless method call. (@koic) - #16244: Fix an incorrect autocorrect for
Style/GuardClausewith anifused as an expression. (@koic) - #16411: Fix an incorrect autocorrect for
Style/GuardClausewith code afterendand a heredoc. (@koic) - #16293: Fix an incorrect autocorrect for
Style/HashConversionwith a hash literal argument. (@Starlexxx) - #16331: Fix an incorrect autocorrect for
Style/HashSyntaxwith an explicit hash value. (@koic) - #16235: Fix an incorrect autocorrect for
Style/HashSyntaxwithStyle/RedundantReturn. (@koic) - #16246: Fix an incorrect autocorrect for
Style/IdenticalConditionalBrancheswith a conditional used as a value. (@koic) - #16278: Fix an incorrect autocorrect for
Style/IdenticalConditionalBrancheswith an assigned jump. (@koic) - #16374: Fix an incorrect autocorrect for
Style/IfUnlessModifierOfIfUnlesswithStyle/MethodCallWithArgsParentheses. (@Starlexxx) - #16384: Fix an incorrect autocorrect for
Style/IfUnlessModifierwithStyle/MethodCallWithArgsParentheses. (@koic) - #16327: Fix an incorrect autocorrect for
Style/IfWithSemicolonwith a setter call. (@koic) - #16314: Fix an incorrect autocorrect for
Style/IfWithSemicolonwith an assignment of a command call. (@koic) - #16197: Fix an incorrect autocorrect for
Style/ItBlockParameterwith an omitted hash value. (@koic) - #16395: Fix an incorrect autocorrect for
Style/LineEndConcatenationwithLint/AmbiguousOperatorPrecedence. (@koic) - #16209: Fix an incorrect autocorrect for
Style/MapIntoArraywithStyle/TrailingCommaInArguments. (@koic) - #16192: Fix an incorrect autocorrect for
Style/MethodCallWithArgsParentheseswithStyle/ParenthesesAroundCondition. (@Starlexxx) - #16429: Fix an incorrect autocorrect for
Style/MethodCallWithArgsParentheseswith ado...endblock in command arguments. (@koic) - #16430: Fix an incorrect autocorrect for
Style/MethodCallWithArgsParentheseswith a command assignment in a pattern match. (@koic) - #16401: Fix an incorrect autocorrect for
Style/MethodCallWithArgsParentheseswith a semicolon in a parenthesized argument. (@Starlexxx) - #16428: Fix an incorrect autocorrect for
Style/NilLambdawith a body on the same line as the block opening or closing. (@koic) - #16196: Fix an incorrect autocorrect for
Style/OperatorMethodCallwith a block. (@Starlexxx) - #16409: Fix an incorrect autocorrect for
Style/OperatorMethodCallwith a parenthesized argument. (@koic) - #16337: Fix an incorrect autocorrect for
Style/PartitionInsteadOfDoubleSelectwith code after the second call. (@koic) - #16299: Fix an incorrect autocorrect for
Style/RaiseArgswithLayout/HeredocArgumentClosingParenthesis. (@Starlexxx) - #16315: Fix an incorrect autocorrect for
Style/RedundantBeginwith a command call assigned in an argument. (@koic) - #16204: Fix an incorrect autocorrect for
Style/RedundantBeginwith code afterend. (@koic) - #16205: Fix an incorrect autocorrect for
Style/RedundantBeginwith trailing comma cops. (@koic) - #16219: Fix an incorrect autocorrect for
Style/RedundantFilterChainwithLayout/SingleLineBlockChain. (@Starlexxx) - #16279: Fix an incorrect autocorrect for
Style/RedundantInterpolationwith a void value expression. (@koic) - #16349: Fix an incorrect autocorrect for
Style/RedundantPercentQwith an escaped double quote. (@Starlexxx) - #16397: Fix an incorrect autocorrect for
Style/RedundantSortwith a comma after the accessor. (@koic) - #16410: Fix an incorrect autocorrect for
Style/RedundantSortwith trailing comma cops. (@koic) - #16330: Fix an incorrect autocorrect for
Style/Semicolonwith cops adding call parentheses. (@koic) - #16347: Fix an incorrect autocorrect for
Style/SingleLineDoEndBlockwith a heredoc in the method call. (@koic) - #16215: Fix an incorrect autocorrect for
Style/SingleLineMethodswith a parenthesized singleton receiver. (@Starlexxx) - #16391: Fix an incorrect autocorrect for
Style/StabbyLambdaParentheseswith block-local variables or a destructured first argument. (@Starlexxx) - #16379: Fix an incorrect autocorrect for
Style/StructInheritancewith a brace block. (@koic) - #16194: Fix an incorrect autocorrect for
Style/WordArrayandStyle/SymbolArraywith interpolated elements. (@maoxor) - #16194: Fix an incorrect autocorrect for
Style/WordArrayandStyle/SymbolArraywith an element starting with#@foo. (@maoxor) - #16312: Fix an incorrect autocorrect for
Style/WordArraywith an invalid byte escape. (@koic) - #16417: Fix an incorrect autocorrect for trailing comma cops with
Lint/AmbiguousOperatorPrecedence. (@koic) - #16431: Fix an infinite loop between
Layout/EmptyLinesAroundAccessModifierandLayout/EmptyLinesAroundBlockBodywith trailing access modifiers. (@Starlexxx) - #16261: Fix an infinite loop for
Layout/AccessModifierIndentationwith a misalignedend. (@koic) - #16251: Fix an infinite loop for
Layout/DefEndAlignmentwith nested def modifiers. (@koic) - #16207: Fix an infinite loop for
Layout/EmptyLineAfterGuardClausewith a multiline guard clause. (@koic) - #16329: Fix an infinite loop for
Layout/EmptyLinesAroundAccessModifierwith consecutive access modifiers. (@koic) - #16359: Fix an infinite loop for
Layout/EmptyLinesAroundAccessModifierwith a trailing blank line. (@koic) - #16371: Fix an infinite loop for
Layout/EmptyLinesAroundAccessModifierwith a numbered oritblock. (@koic) - #16372: Fix an infinite loop for
Layout/EmptyLinesAroundClassBodyandLayout/EmptyLinesAroundModuleBodywith a definition after a semicolon. (@koic) - #16309: Fix an infinite loop for
Layout/EmptyLinesAroundClassBodywith a conditional access modifier. (@koic) - #16262: Fix an infinite loop for
Layout/EmptyLinesAroundExceptionHandlingKeywordswith a clause at the block body beginning. (@koic) - #16265: Fix an infinite loop for
Layout/EndAlignmentwith a conditional inside an operator receiver. (@koic) - #16250: Fix an infinite loop for
Layout/EndAlignmentwith a safe navigation setter. (@koic) - #16247: Fix an infinite loop for
Layout/FirstHashElementIndentationwith pairs on the same line and separator style. (@koic) - #16319: Fix an infinite loop for
Layout/HeredocArgumentClosingParenthesiswith a HEREDOC in another HEREDOC. (@Starlexxx) - #16360: Fix an infinite loop for
Layout/HeredocArgumentClosingParenthesiswith code after a nested HEREDOC call. (@koic) - #16358: Fix an infinite loop for
Layout/IndentationStylewith a command heredoc. (@Starlexxx) - #16323: Fix an infinite loop for
Layout/IndentationStylewith a heredoc nested in another heredoc. (@Starlexxx) - #16249: Fix an infinite loop for
Layout/InitialIndentationwith a string starting with#. (@koic) - #16260: Fix an infinite loop for
Layout/SpaceBeforeSemicolonwithLayout/SpaceInsideParens. (@koic) - #16206: Fix an infinite loop for
Layout/SpaceInsideArrayLiteralBracketswithLayout/MultilineArrayBraceLayout. (@koic) - #16208: Fix an infinite loop for
Style/EmptyStringInsideInterpolationwith a multiline branch. (@koic) - #16264: Fix an infinite loop for
Style/MutableConstantwith a numbered oritblock. (@koic) - #16387: Fix an infinite loop for
Style/RedundantBeginwithStyle/MultilineMemoization. (@koic) - #16234: Fix an infinite loop for
Style/SingleLineBlockParamswith more parameters than configured names. (@koic) - #16396: Fix
--auto-gen-configintermittently generating a.rubocop_todo.ymlthat contains only the header, caused by a stale cached options digest making the second phase read the first phase's results. (@koic) - #16338: Fix bug where specifying
--display-cop-namesdisables parallelization. (@lacostej) - #16199: Fix bug where specifying
--force-exclusiondisables parallelization. (@GabrielNagy) - #16238: Fix bug where specifying
--report-unused-todo-entriesdisables parallelization. (@nertzy) - #16186: Fix the server being reported as running when its pid file is empty or invalid. (@DmitryPogrebnoy)
- #16325: Fix false negatives in
Layout/EmptyLinesAroundExceptionHandlingKeywordswith anitblock. (@koic) - #16255: Fix false positives for
Lint/RedundantCopDisableDirectivewhen cops are excluded with--except. (@czj) - #16392: Fix false positives for
Lint/DuplicateMethodswith methods defined incasebranches. (@APX403) - #16187: Fix false positives for
Lint/UselessAssignmentwith named captures that are not local variables. (@maoxor) - #16189: Fix false positives for
Style/PerlBackrefsinalias. (@maoxor) - #16190: Fix false positives for
Style/SpecialGlobalVarsinalias. (@maoxor) - #16248: Fix false positives in
Style/HashLookupMethodwhen using theArrayorHashconstructor. (@koic) - #16386: Fix false positives in
Style/OperatorMethodCallwhen calling!or~with an argument. (@koic) - #16253: Fix false positives in
Style/StringConcatenationwhen concatenating a heredoc. (@koic) - #16252: Fix false positives with
UseProjectIndexwhen RBS signatures are target files. (@koic) - #15570: Fix false unused todo reports for glob exclusions. (@aprylewu)
- #16383: Fix incorrect autocorrects for
Lint/RedundantRequireStatementandLint/DuplicateRequirewith code on the same line. (@koic) - #16201: Fix per-department StyleGuideBaseURL use. (@bquorning)
- #11451: Fix plugin cops running on files whose configuration does not enable the plugin, and the JUnit formatter listing them as test cases for those files. (@APX403)
- #12638: Fix result cache cleanup removing server state files. (@nicholasdower)
- #16185: Fix a race where a server restart fails with
running? was not true after 20 seconds!because the old server still removes its cache directory. (@DmitryPogrebnoy) - #16202: Fix
--display-style-guidelinking a cop to another department's style guide when both use the same guideline anchor. (@bbatsov) - #16256: Fix the result cache missing on a fresh checkout with
UseProjectIndex. (@koic)