gems rubocop 1.92.3
RuboCop v1.92.3

3 hours ago

Bug fixes

  • #16166: Fix a false positive for Layout/ExtraSpacing when uniformly padded tokens are aligned with differently spaced tokens in the same column. (@Don-Yin)
  • #16298: Fix a false positive for Style/ParenthesesAroundCondition with multiple expressions separated by a line break. (@APX403)
  • #16333: Fix an error for Layout/EmptyLinesAroundExceptionHandlingKeywords with an endless method. (@Starlexxx)
  • #16270: Fix an error for Layout/FirstArgumentIndentation with an inner call without parentheses. (@koic)
  • #16269: Fix an error for Layout/MultilineArrayBraceLayout with an escaped newline as the last element. (@koic)
  • #16229: Fix an error for Layout/MultilineMethodCallIndentation with an implicit call. (@koic)
  • #16280: Fix an error for Lint/DuplicateMethods with a non-symbol delegate option key. (@Starlexxx)
  • #16226: Fix an error for Lint/LiteralAsCondition with a literal condition nested in a corrected node. (@koic)
  • #16268: Fix an error for Lint/LiteralInInterpolation with a beginless or endless range. (@koic)
  • #16187: Fix an error for Lint/UselessAssignment with a non-ASCII named capture. (@maoxor)
  • #16272: Fix an error for Lint/UselessAssignment with an operator assignment in a top level block call. (@koic)
  • #16259: Fix an error for Naming/RescuedExceptionsVariableName with a method call on begin. (@koic)
  • #16283: Fix an error for Style/AccessModifierDeclarations with code on the same line. (@koic)
  • #16284: Fix an error for Style/ClassAndModuleChildren with a misaligned inner end. (@koic)
  • #16233: Fix an error for Style/ClassMethodsDefinitions with a method on the class << self line. (@koic)
  • #16285: Fix an error for Style/EmptyStringInsideInterpolation with an if without else. (@koic)
  • #16225: Fix an error for Style/EndlessMethod with a nested method definition. (@koic)
  • #16324: Fix an error for Style/For with a for in the collection of another for. (@Starlexxx)
  • #16266: Fix an error for Style/For with an each block in the receiver. (@koic)
  • #16286: Fix an error for Style/GuardClause with empty parentheses as the body. (@koic)
  • #16227: Fix an error for Style/HashFetchChain when the last fetch has no parentheses. (@koic)
  • #16231: Fix an error for Style/Lambda with a lambda in a default argument value. (@koic)
  • #16230: Fix an error for Style/NonNilCheck with a receiverless nil? in an unless condition. (@koic)
  • #16433: Fix an error for Style/OperatorMethodCall with an operand without parentheses. (@bbatsov)
  • #16217: Fix an error for Style/RedundantArrayConstructor with a nested Array constructor. (@Starlexxx)
  • #16258: Fix an error for Style/RedundantBegin with an empty begin that has an ensure. (@Starlexxx)
  • #16228: Fix an error for Style/RedundantEach with a method argument. (@koic)
  • #16232: Fix an error for Style/RedundantInitialize and Style/DigChain with a node without an end location. (@koic)
  • #16273: Fix an error for Style/RedundantInterpolation with a nested interpolation in an argument. (@koic)
  • #16218: Fix an error for Style/SendWithLiteralMethodName with a string in an invalid encoding. (@Starlexxx)
  • #16239: Fix an error for Style/SingleLineMethods with an empty method defined in the body of another. (@Starlexxx)
  • #16222: Fix an error for Style/StringConcatenation with 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/BlockEndNewline with a heredoc and cops inserting after the closing brace. (@koic)
  • #16287: Fix an incorrect autocorrect for Layout/BlockEndNewline with a HEREDOC ending before the last method call. (@koic)
  • #16302: Fix an incorrect autocorrect for Layout/BlockEndNewline with code after the closing brace of a heredoc block. (@koic)
  • #15746: Fix an incorrect autocorrect for Layout/ClassStructure leaving the moved element's blank-line separator behind. (@dduugg)
  • #15746: Fix an incorrect autocorrect for Layout/ClassStructure with Style/AccessModifierDeclarations, Style/BisectedAttrAccessor and Style/RedundantInitialize. (@dduugg)
  • #16368: Fix an incorrect autocorrect for Layout/EmptyLineAfterGuardClause with multiple statements in begin. (@koic)
  • #16288: Fix an incorrect autocorrect for Layout/EmptyLineAfterGuardClause with a guard clause used as a value. (@koic)
  • #16304: Fix an incorrect autocorrect for Layout/EmptyLinesAfterModuleInclusion with a heredoc argument. (@koic)
  • #16369: Fix an incorrect autocorrect for Layout/EmptyLinesAroundAccessModifier with end right after the modifier. (@koic)
  • #16305: Fix an incorrect autocorrect for Layout/EmptyLinesAroundBlockBody with a body on the opening line. (@koic)
  • #16414: Fix an incorrect autocorrect for Layout/HeredocArgumentClosingParenthesis with code after the closing parenthesis. (@koic)
  • #16370: Fix an incorrect autocorrect for Layout/MultilineArrayBraceLayout and Layout/MultilineHashBraceLayout with Style/MethodCallWithArgsParentheses. (@koic)
  • #16306: Fix an incorrect autocorrect for Layout/MultilineArrayBraceLayout with a line continuation before the closing brace. (@koic)
  • #16181: Fix an incorrect autocorrect for Layout/MultilineHashBraceLayout with a comment line before the closing brace. (@koic)
  • #16380: Fix an incorrect autocorrect for Layout/MultilineMethodDefinitionBraceLayout with Style/MethodDefParentheses. (@koic)
  • #16342: Fix an incorrect autocorrect for Layout/SingleLineBlockChain with Style/CollectionQuerying and hash transform cops. (@koic)
  • #16328: Fix an incorrect autocorrect for Lint/AmbiguousBlockAssociation with Style/AndOr. (@koic)
  • #16243: Fix an incorrect autocorrect for Lint/AmbiguousOperatorPrecedence with Style/LineEndConcatenation. (@Starlexxx)
  • #16350: Fix an incorrect autocorrect for Lint/AmbiguousRegexpLiteral with a safe navigation call in an argument. (@koic)
  • #16344: Fix an incorrect autocorrect for Lint/DeprecatedClassMethods with a parenthesized attr. (@Starlexxx)
  • #16351: Fix an incorrect autocorrect for Lint/HashNewWithKeywordArgumentsAsDefault without parentheses. (@koic)
  • #16352: Fix an incorrect autocorrect for Lint/HeredocMethodCallPosition with multiline brace layout cops. (@koic)
  • #16188: Fix an incorrect autocorrect for Lint/InterpolationCheck with yield outside a method. (@Starlexxx)
  • #16419: Fix an incorrect autocorrect for Lint/LiteralAsCondition when removing a node where an expression is required. (@Starlexxx)
  • #16310: Fix an incorrect autocorrect for Lint/LiteralInInterpolation with a delimiter of the enclosing literal. (@koic)
  • #16376: Fix an incorrect autocorrect for Lint/LiteralInInterpolation with a double quote in a percent array. (@koic)
  • #16345: Fix an incorrect autocorrect for Lint/LiteralInInterpolation with cops changing the delimiters. (@Starlexxx)
  • #16316: Fix an incorrect autocorrect for Lint/NonAtomicFileOperation with Style/MethodCallWithArgsParentheses. (@koic)
  • #16424: Fix an incorrect autocorrect for Lint/NonAtomicFileOperation with code after end. (@koic)
  • #16408: Fix an incorrect autocorrect for Lint/NumberConversion with Style/MethodCallWithArgsParentheses and Style/NestedParenthesizedCalls. (@koic)
  • #16245: Fix an incorrect autocorrect for Lint/ParenthesesAsGroupedExpression with multiple statements. (@koic)
  • #16373: Fix an incorrect autocorrect for Lint/ParenthesesAsGroupedExpression with Style/RedundantParentheses. (@koic)
  • #16353: Fix an incorrect autocorrect for Lint/ParenthesesAsGroupedExpression with empty parentheses. (@koic)
  • #16311: Fix an incorrect autocorrect for Lint/ParenthesesAsGroupedExpression with a command call with a do block. (@koic)
  • #16377: Fix an incorrect autocorrect for Lint/ParenthesesAsGroupedExpression with a multiple assignment. (@koic)
  • #16356: Fix an incorrect autocorrect for Lint/RedundantCopEnableDirective with text after the directive. (@koic)
  • #16354: Fix an incorrect autocorrect for Lint/RedundantDirGlobSort with Layout/DotPosition. (@koic)
  • #16375: Fix an incorrect autocorrect for Lint/RedundantDirGlobSort with a comment before a leading dot. (@koic)
  • #16406: Fix an incorrect autocorrect for Lint/SafeNavigationChain with an operator call as an argument. (@koic)
  • #16221: Fix an incorrect autocorrect for Lint/SendWithMixinArgument when the call is not a statement. (@Starlexxx)
  • #16355: Fix an incorrect autocorrect for Lint/TrailingCommaInAttributeDeclaration with Style/MethodCallWithArgsParentheses. (@koic)
  • #16357: Fix an incorrect autocorrect for Lint/TripleQuotes with Lint/ImplicitStringConcatenation. (@koic)
  • #16388: Fix an incorrect autocorrect for Lint/UselessAssignment with an operator assignment whose value needs parentheses. (@Starlexxx)
  • #16335: Fix an incorrect autocorrect for Lint/UselessTimes with a reassigned block argument. (@koic)
  • #16336: Fix an incorrect autocorrect for Lint/UselessTimes with code after it on the same line. (@koic)
  • #16282: Fix an incorrect autocorrect for Lint/Void with an interpolated literal. (@Starlexxx)
  • #16290: Fix an incorrect autocorrect for Lint/Void with an operator method call with multiple or keyword arguments. (@koic)
  • #16326: Fix an incorrect autocorrect for Naming/BlockForwarding with an index call. (@koic)
  • #16236: Fix an incorrect autocorrect for Naming/HeredocDelimiterCase with a quote inside a quoted delimiter. (@Starlexxx)
  • #16321: Fix an incorrect autocorrect for Style/AmbiguousEndlessMethodDefinition with a heredoc. (@koic)
  • #16398: Fix an incorrect autocorrect for Style/AndOr with Style/OperatorMethodCall. (@koic)
  • #16399: Fix an incorrect autocorrect for Style/BlockDelimiters with Style/RescueStandardError. (@koic)
  • #16213: Fix an incorrect autocorrect for Style/CombinableLoops with Style/ItBlockParameter. (@koic)
  • #16400: Fix an incorrect autocorrect for Style/CombinableLoops with Style/SymbolProc. (@koic)
  • #16402: Fix an incorrect autocorrect for Style/ConcatArrayLiterals with a trailing comma. (@koic)
  • #16307: Fix an incorrect autocorrect for Style/DataInheritance with Style/MethodCallWithArgsParentheses. (@koic)
  • #16389: Fix an incorrect autocorrect for Style/DefWithParentheses with an endless method whose = is on the next line. (@Starlexxx)
  • #16214: Fix an incorrect autocorrect for Style/EmptyClassDefinition with a top-level constant. (@Starlexxx)
  • #16292: Fix an incorrect autocorrect for Style/EmptyLiteral with an operator method argument. (@koic)
  • #16393: Fix an incorrect autocorrect for Style/EmptyMethod with a parenthesized receiver. (@koic)
  • #16367: Fix an incorrect autocorrect for Style/EndlessMethod with Style/IdenticalConditionalBranches. (@koic)
  • #16365: Fix an incorrect autocorrect for Style/EndlessMethod with a command body outside a statement. (@koic)
  • #16394: Fix an incorrect autocorrect for Style/EndlessMethod with a parenthesized receiver. (@koic)
  • #16366: Fix an incorrect autocorrect for Style/EndlessMethod with cops unwrapping the body. (@koic)
  • #16220: Fix an incorrect autocorrect for Style/ExplicitBlockArgument with a method call without parentheses as the last argument. (@Starlexxx)
  • #16195: Fix an incorrect autocorrect for Style/For with a receiverless method call. (@koic)
  • #16244: Fix an incorrect autocorrect for Style/GuardClause with an if used as an expression. (@koic)
  • #16411: Fix an incorrect autocorrect for Style/GuardClause with code after end and a heredoc. (@koic)
  • #16293: Fix an incorrect autocorrect for Style/HashConversion with a hash literal argument. (@Starlexxx)
  • #16331: Fix an incorrect autocorrect for Style/HashSyntax with an explicit hash value. (@koic)
  • #16235: Fix an incorrect autocorrect for Style/HashSyntax with Style/RedundantReturn. (@koic)
  • #16246: Fix an incorrect autocorrect for Style/IdenticalConditionalBranches with a conditional used as a value. (@koic)
  • #16278: Fix an incorrect autocorrect for Style/IdenticalConditionalBranches with an assigned jump. (@koic)
  • #16374: Fix an incorrect autocorrect for Style/IfUnlessModifierOfIfUnless with Style/MethodCallWithArgsParentheses. (@Starlexxx)
  • #16384: Fix an incorrect autocorrect for Style/IfUnlessModifier with Style/MethodCallWithArgsParentheses. (@koic)
  • #16327: Fix an incorrect autocorrect for Style/IfWithSemicolon with a setter call. (@koic)
  • #16314: Fix an incorrect autocorrect for Style/IfWithSemicolon with an assignment of a command call. (@koic)
  • #16197: Fix an incorrect autocorrect for Style/ItBlockParameter with an omitted hash value. (@koic)
  • #16395: Fix an incorrect autocorrect for Style/LineEndConcatenation with Lint/AmbiguousOperatorPrecedence. (@koic)
  • #16209: Fix an incorrect autocorrect for Style/MapIntoArray with Style/TrailingCommaInArguments. (@koic)
  • #16192: Fix an incorrect autocorrect for Style/MethodCallWithArgsParentheses with Style/ParenthesesAroundCondition. (@Starlexxx)
  • #16429: Fix an incorrect autocorrect for Style/MethodCallWithArgsParentheses with a do...end block in command arguments. (@koic)
  • #16430: Fix an incorrect autocorrect for Style/MethodCallWithArgsParentheses with a command assignment in a pattern match. (@koic)
  • #16401: Fix an incorrect autocorrect for Style/MethodCallWithArgsParentheses with a semicolon in a parenthesized argument. (@Starlexxx)
  • #16428: Fix an incorrect autocorrect for Style/NilLambda with a body on the same line as the block opening or closing. (@koic)
  • #16196: Fix an incorrect autocorrect for Style/OperatorMethodCall with a block. (@Starlexxx)
  • #16409: Fix an incorrect autocorrect for Style/OperatorMethodCall with a parenthesized argument. (@koic)
  • #16337: Fix an incorrect autocorrect for Style/PartitionInsteadOfDoubleSelect with code after the second call. (@koic)
  • #16299: Fix an incorrect autocorrect for Style/RaiseArgs with Layout/HeredocArgumentClosingParenthesis. (@Starlexxx)
  • #16315: Fix an incorrect autocorrect for Style/RedundantBegin with a command call assigned in an argument. (@koic)
  • #16204: Fix an incorrect autocorrect for Style/RedundantBegin with code after end. (@koic)
  • #16205: Fix an incorrect autocorrect for Style/RedundantBegin with trailing comma cops. (@koic)
  • #16219: Fix an incorrect autocorrect for Style/RedundantFilterChain with Layout/SingleLineBlockChain. (@Starlexxx)
  • #16279: Fix an incorrect autocorrect for Style/RedundantInterpolation with a void value expression. (@koic)
  • #16349: Fix an incorrect autocorrect for Style/RedundantPercentQ with an escaped double quote. (@Starlexxx)
  • #16397: Fix an incorrect autocorrect for Style/RedundantSort with a comma after the accessor. (@koic)
  • #16410: Fix an incorrect autocorrect for Style/RedundantSort with trailing comma cops. (@koic)
  • #16330: Fix an incorrect autocorrect for Style/Semicolon with cops adding call parentheses. (@koic)
  • #16347: Fix an incorrect autocorrect for Style/SingleLineDoEndBlock with a heredoc in the method call. (@koic)
  • #16215: Fix an incorrect autocorrect for Style/SingleLineMethods with a parenthesized singleton receiver. (@Starlexxx)
  • #16391: Fix an incorrect autocorrect for Style/StabbyLambdaParentheses with block-local variables or a destructured first argument. (@Starlexxx)
  • #16379: Fix an incorrect autocorrect for Style/StructInheritance with a brace block. (@koic)
  • #16194: Fix an incorrect autocorrect for Style/WordArray and Style/SymbolArray with interpolated elements. (@maoxor)
  • #16194: Fix an incorrect autocorrect for Style/WordArray and Style/SymbolArray with an element starting with #@foo. (@maoxor)
  • #16312: Fix an incorrect autocorrect for Style/WordArray with 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/EmptyLinesAroundAccessModifier and Layout/EmptyLinesAroundBlockBody with trailing access modifiers. (@Starlexxx)
  • #16261: Fix an infinite loop for Layout/AccessModifierIndentation with a misaligned end. (@koic)
  • #16251: Fix an infinite loop for Layout/DefEndAlignment with nested def modifiers. (@koic)
  • #16207: Fix an infinite loop for Layout/EmptyLineAfterGuardClause with a multiline guard clause. (@koic)
  • #16329: Fix an infinite loop for Layout/EmptyLinesAroundAccessModifier with consecutive access modifiers. (@koic)
  • #16359: Fix an infinite loop for Layout/EmptyLinesAroundAccessModifier with a trailing blank line. (@koic)
  • #16371: Fix an infinite loop for Layout/EmptyLinesAroundAccessModifier with a numbered or it block. (@koic)
  • #16372: Fix an infinite loop for Layout/EmptyLinesAroundClassBody and Layout/EmptyLinesAroundModuleBody with a definition after a semicolon. (@koic)
  • #16309: Fix an infinite loop for Layout/EmptyLinesAroundClassBody with a conditional access modifier. (@koic)
  • #16262: Fix an infinite loop for Layout/EmptyLinesAroundExceptionHandlingKeywords with a clause at the block body beginning. (@koic)
  • #16265: Fix an infinite loop for Layout/EndAlignment with a conditional inside an operator receiver. (@koic)
  • #16250: Fix an infinite loop for Layout/EndAlignment with a safe navigation setter. (@koic)
  • #16247: Fix an infinite loop for Layout/FirstHashElementIndentation with pairs on the same line and separator style. (@koic)
  • #16319: Fix an infinite loop for Layout/HeredocArgumentClosingParenthesis with a HEREDOC in another HEREDOC. (@Starlexxx)
  • #16360: Fix an infinite loop for Layout/HeredocArgumentClosingParenthesis with code after a nested HEREDOC call. (@koic)
  • #16358: Fix an infinite loop for Layout/IndentationStyle with a command heredoc. (@Starlexxx)
  • #16323: Fix an infinite loop for Layout/IndentationStyle with a heredoc nested in another heredoc. (@Starlexxx)
  • #16249: Fix an infinite loop for Layout/InitialIndentation with a string starting with #. (@koic)
  • #16260: Fix an infinite loop for Layout/SpaceBeforeSemicolon with Layout/SpaceInsideParens. (@koic)
  • #16206: Fix an infinite loop for Layout/SpaceInsideArrayLiteralBrackets with Layout/MultilineArrayBraceLayout. (@koic)
  • #16208: Fix an infinite loop for Style/EmptyStringInsideInterpolation with a multiline branch. (@koic)
  • #16264: Fix an infinite loop for Style/MutableConstant with a numbered or it block. (@koic)
  • #16387: Fix an infinite loop for Style/RedundantBegin with Style/MultilineMemoization. (@koic)
  • #16234: Fix an infinite loop for Style/SingleLineBlockParams with more parameters than configured names. (@koic)
  • #16396: Fix --auto-gen-config intermittently generating a .rubocop_todo.yml that 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-names disables parallelization. (@lacostej)
  • #16199: Fix bug where specifying --force-exclusion disables parallelization. (@GabrielNagy)
  • #16238: Fix bug where specifying --report-unused-todo-entries disables 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/EmptyLinesAroundExceptionHandlingKeywords with an it block. (@koic)
  • #16255: Fix false positives for Lint/RedundantCopDisableDirective when cops are excluded with --except. (@czj)
  • #16392: Fix false positives for Lint/DuplicateMethods with methods defined in case branches. (@APX403)
  • #16187: Fix false positives for Lint/UselessAssignment with named captures that are not local variables. (@maoxor)
  • #16189: Fix false positives for Style/PerlBackrefs in alias. (@maoxor)
  • #16190: Fix false positives for Style/SpecialGlobalVars in alias. (@maoxor)
  • #16248: Fix false positives in Style/HashLookupMethod when using the Array or Hash constructor. (@koic)
  • #16386: Fix false positives in Style/OperatorMethodCall when calling ! or ~ with an argument. (@koic)
  • #16253: Fix false positives in Style/StringConcatenation when concatenating a heredoc. (@koic)
  • #16252: Fix false positives with UseProjectIndex when RBS signatures are target files. (@koic)
  • #15570: Fix false unused todo reports for glob exclusions. (@aprylewu)
  • #16383: Fix incorrect autocorrects for Lint/RedundantRequireStatement and Lint/DuplicateRequire with 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-guide linking 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)

Don't miss a new rubocop release

NewReleases is sending notifications on new releases.