gems rubocop 1.92.1
RuboCop v1.92.1

6 hours ago

Bug fixes

  • #16063: Fix an error for Layout/HashAlignment with 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/ClassAndModuleChildren when compacting a namespace that contains another compactable one. (@Starlexxx)
  • #16047: Fix an error for Style/ClassMethodsDefinitions with a nested class << self. (@Starlexxx)
  • #16041: Fix an error for Style/EmptyStringInsideInterpolation with nested conditionals. (@koic)
  • #16067: Fix an error for Style/RedundantInterpolationUnfreeze with an unfrozen string interpolated into another one. (@Starlexxx)
  • #16055: Fix an error for Style/RescueModifier with 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/ClassStructure with code after a heredoc. (@koic)
  • #16026: Fix an incorrect autocorrect for Layout/DotPosition with a dot removed by another cop. (@koic)
  • #16107: Fix an incorrect autocorrect for Layout/HeredocArgumentClosingParenthesis with Layout/MultilineMethodCallBraceLayout. (@koic)
  • #16117: Fix an incorrect autocorrect for Layout/LineLength with an unparenthesized method definition. (@koic)
  • #16061: Fix an incorrect autocorrect for Layout/MultilineHashBraceLayout with a nested literal. (@koic)
  • #16033: Fix an incorrect autocorrect for Layout/MultilineMethodCallIndentation with a single-line block. (@koic)
  • #16077: Fix an incorrect autocorrect for Layout/SingleLineBlockChain with Style/RedundantSort. (@koic)
  • #16098: Fix an incorrect autocorrect for Lint/AmbiguousRegexpLiteral with a regexp hash key. (@koic)
  • #16086: Fix an incorrect autocorrect for Lint/SymbolConversion with hash value omission. (@koic)
  • #16099: Fix an incorrect autocorrect for Naming/RescuedExceptionsVariableName with Style/HashSyntax. (@koic)
  • #16023: Fix an incorrect autocorrect for Style/AccessModifierDeclarations with Style/EndlessMethod. (@Starlexxx)
  • #16024: Fix an incorrect autocorrect for Style/AccessModifierDeclarations with an endless method command body. (@Starlexxx)
  • #16111: Fix an incorrect autocorrect for Style/AccessModifierDeclarations with an endless method with a do...end block body. (@koic)
  • #16056: Fix an incorrect autocorrect for Style/AndOr with a safe navigation command call. (@Starlexxx)
  • #16043: Fix an incorrect autocorrect for Style/AndOr with Style/ReturnNil. (@koic)
  • #16020: Fix an incorrect autocorrect for Style/ArgumentsForwarding when another call forwards anonymous arguments without the block. (@Starlexxx)
  • #16038: Fix an incorrect autocorrect for Style/ArgumentsForwarding with index assignment and setter methods. (@koic)
  • #15067: Fix an incorrect autocorrect for Style/CollectionQuerying when count is used without a block. (@Starlexxx, @wwenrr)
  • #16032: Fix an incorrect autocorrect for Style/CombinableLoops with Layout/BlockEndNewline. (@Starlexxx)
  • #16072: Fix an incorrect autocorrect for Style/CombinableLoops with Layout/RedundantLineBreak. (@koic)
  • #16036: Fix an incorrect autocorrect for Style/ConcatArrayLiterals with a multiline call without parentheses. (@koic)
  • #16100: Fix an incorrect autocorrect for Style/EmptyStringInsideInterpolation with a command call. (@koic)
  • #16023: Fix an incorrect autocorrect for Style/EndlessMethod with a command body in a method definition passed as an argument. (@Starlexxx)
  • #16110: Fix an incorrect autocorrect for Style/EndlessMethod with a do...end block body in a method definition passed as an argument. (@koic)
  • #16042: Fix an incorrect autocorrect for Style/EndlessMethod with a negated command call. (@koic)
  • #16029: Fix an incorrect autocorrect for Style/EndlessMethod with Style/GuardClause. (@koic)
  • #16058: Fix an incorrect autocorrect for Style/EndlessMethod with Style/RaiseArgs. (@Starlexxx)
  • #16045: Fix an incorrect autocorrect for Style/For with a numbered or it block. (@koic)
  • #16046: Fix an incorrect autocorrect for Style/For with block parameters invalid as loop variables. (@koic)
  • #16044: Fix an incorrect autocorrect for Style/For with Style/ItBlockParameter. (@koic)
  • #16031: Fix an incorrect autocorrect for Style/GuardClause with a heredoc in a multiline guard clause. (@Starlexxx)
  • #16031: Fix an incorrect autocorrect for Style/GuardClause with a heredoc in the kept branch. (@Starlexxx)
  • #16021: Fix an incorrect autocorrect for Style/HashAsLastArrayItem with Style/TrailingCommaInArrayLiteral. (@Starlexxx)
  • #16027: Fix an incorrect autocorrect for Style/IfUnlessModifier with a heredoc in the condition. (@koic)
  • #16025: Fix an incorrect autocorrect for Style/Lambda with extra spacing before the block. (@koic)
  • #16054: Fix an incorrect autocorrect for Style/MethodCallWithArgsParentheses with a trailing comma. (@koic)
  • #16080: Fix an incorrect autocorrect for Style/MethodCallWithArgsParentheses with a parenthesized argument. (@koic)
  • #16074: Fix an incorrect autocorrect for Style/MethodCallWithArgsParentheses with an assignment used as an argument. (@koic)
  • #16118: Fix an incorrect autocorrect for Style/MethodDefParentheses with Layout/LineLength. (@koic)
  • #16039: Fix an incorrect autocorrect for Style/MixinGrouping with parenthesized arguments. (@koic)
  • #16085: Fix an incorrect autocorrect for Style/MutableConstant with an omitted hash value. (@koic)
  • #16075: Fix an incorrect autocorrect for Style/MutableConstant with Recursive: true and Style/HashAsLastArrayItem. (@koic)
  • #16030: Fix an incorrect autocorrect for Style/RaiseArgs dropping required parentheses. (@Starlexxx)
  • #16101: Fix an incorrect autocorrect for Style/RedundantInterpolationUnfreeze with Layout/MultilineMethodCallBraceLayout. (@koic)
  • #16108: Fix an incorrect autocorrect for Style/RedundantInterpolationUnfreeze with a comment. (@koic)
  • #16040: Fix an incorrect autocorrect for Style/RedundantSelfAssignmentBranch with assignment used as value. (@koic)
  • #16076: Fix an incorrect autocorrect for Style/RedundantSort with a line break before the accessor. (@koic)
  • #16102: Fix an incorrect autocorrect for Style/RequireOrder without a trailing newline. (@koic)
  • #16037: Fix an incorrect autocorrect for Style/SendWithLiteralMethodName with Layout/MultilineMethodArgumentLineBreaks. (@koic)
  • #16062: Fix an incorrect autocorrect for Style/StructInheritance with Style/MethodCallWithArgsParentheses. (@koic)
  • #16103: Fix an incorrect autocorrect for Style/SymbolProc with Style/TrailingCommaInArguments. (@koic)
  • #16048: Fix an infinite loop for Layout/ArgumentAlignment with a binary operator. (@koic)
  • #16116: Fix an infinite loop for Layout/EmptyLineAfterMultilineCondition with a statement on the condition line. (@koic)
  • #16051: Fix an infinite loop for Layout/EmptyLineAfterMultilineCondition with rescue. (@koic)
  • #16059: Fix an infinite loop for Layout/EmptyLinesAroundBlockBody with block arguments on the next line. (@koic)
  • #16028: Fix an infinite loop for Layout/EndAlignment with a conditional in a method argument. (@koic)
  • #16034: Fix an infinite loop for Layout/FirstArgumentIndentation with a multiline hash first argument. (@koic)
  • #15927: Fix an infinite loop for Layout/FirstArrayElementLineBreak with Layout/SpaceInsideArrayLiteralBrackets compact style. (@Starlexxx)
  • #16050: Fix an infinite loop for Layout/FirstHashElementIndentation with a double splat. (@koic)
  • #16069: Fix an infinite loop for Layout/HeredocArgumentClosingParenthesis with a HEREDOC nested in a hash argument. (@Starlexxx)
  • #16082: Fix an infinite loop for Layout/IndentationConsistency with Layout/IndentationWidth disabled on a line. (@koic)
  • #16022: Fix an infinite loop for Layout/LineLength splitting off a blank string. (@Starlexxx)
  • #16079: Fix an infinite loop for Layout/LineLength with Layout/SpaceInsideArrayLiteralBrackets compact style. (@koic)
  • #16053: Fix an infinite loop for Layout/LineLength with a run of spaces at the break. (@koic)
  • #16078: Fix an infinite loop for Layout/LineLength with a very long string. (@koic)
  • #16035: Fix an infinite loop for Layout/RedundantLineBreak with Layout/ExtraSpacing. (@koic)
  • #16060: Fix an infinite loop for Style/IfUnlessModifier with multiple modifiers in a logical operator. (@koic)
  • #16049: Fix an infinite loop for Style/IfUnlessModifier with spaces inside parentheses. (@koic)
  • #16064: Fix an infinite loop for Style/Lambda with Layout/SpaceInLambdaLiteral. (@koic)
  • #16052: Fix an infinite loop for Style/Lambda with Layout/SpaceInsideParens. (@koic)
  • #16084: Fix an infinite loop for Style/MutableConstant with a splat in a frozen array. (@koic)
  • #16071: Fix an infinite loop for Style/MutableConstant with Recursive: true and a hash without braces. (@koic)
  • #16018: Fix an infinite loop for Style/RequireOrder with a long list of unsorted requires. (@Starlexxx)
  • #16131: Fix RuboCop::Cop::Badge equality 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/BlockDelimiters moving a trailing directive comment before the block. (@Starlexxx)
  • #16070: Fix false negatives for Layout/SpaceInsideReferenceBrackets with chained reference brackets inside. (@koic)
  • #16083: Fix false positives for Lint/SafeNavigationConsistency across || branches. (@koic)
  • #16119: Fix false positives in Style/ItBlockParameter when a local variable named it is in scope. (@koic)
  • #16120: Fix false positives in Style/ItBlockParameter when the block reassigns its parameter. (@koic)
  • #16106: Fix an incorrect autocorrect for Lint/HeredocMethodCallPosition with Style/MethodCallWithArgsParentheses. (@Starlexxx)
  • #15745: Make Layout/ClassStructure aware of the symbol-list forms of visibility modifiers, such as private :foo, :bar and private_class_method :foo. (@dduugg)
  • #16093: Fix a Parser::ClobberingError for Lint/NumberConversion with a symbol conversion in a corrected receiver. (@Starlexxx)
  • #16109: Fix an incorrect autocorrect for Style/ParenthesesAroundCondition with a multiple assignment. (@Starlexxx)
  • #16113: Fix a Parser::ClobberingError for Style/RaiseArgs with a raise nested in another. (@Starlexxx)
  • #16112: Fix an error for Style/RedundantBegin with a multiline begin as the condition of a modifier if. (@Starlexxx)
  • #16095: Fix an infinite loop for Layout/RedundantLineBreak with Layout/LineLength and tab indentation. (@Starlexxx)
  • #15745: Fix Style/ClassMethodsDefinitions and Style/DocumentationMethod treating methods named in a multi-symbol private call as public, which made the former correct class << self to code raising NameError. (@dduugg)
  • #16097: Fix an infinite loop for Lint/UselessSetterCall with Lint/Void in initialize and setter methods. (@Starlexxx)

Don't miss a new rubocop release

NewReleases is sending notifications on new releases.