gems rubocop 1.92.2
RuboCop v1.92.2

5 hours ago

Bug fixes

  • #16147: Fix a false negative for Lint/RedundantCopDisableDirective when autocorrection shifts lines. (@koic)
  • #16104: Fix a false negative for Style/FloatDivision with a trailing comment. (@a-lavis)
  • #16146: Fix a false positive for Lint/RedundantCopDisableDirective with a repeated disable. (@koic)
  • #16176: Fix a false positive for Style/RaiseArgs with EnforcedStyle: compact and constructor arguments. (@bbatsov)
  • #16183: Fix an error for Layout/RescueEnsureAlignment with index or-assignment. (@koic)
  • #16158: Fix an error for Style/NumericPredicate with a predicate nested in the receiver of another. (@Starlexxx)
  • #16125: Fix an error for Style/RedundantCondition with a nested modifier if. (@koic)
  • #16175: Fix an incorrect autocorrect for Layout/HashAlignment with multiple styles and pairs on one line. (@bbatsov)
  • #16139: Fix an incorrect autocorrect for Layout/LineLength with code after a heredoc opener. (@koic)
  • #16160: Fix an incorrect autocorrect for Layout/SingleLineBlockChain with Style/MapToSet. (@koic)
  • #16002: Fix an incorrect autocorrect for Layout/SpaceBeforeBlockBraces with a brace after a line continuation. (@Starlexxx)
  • #16175: Fix an incorrect autocorrect for Layout/SpaceBeforeBlockBraces with a brace after a heredoc body. (@bbatsov)
  • #16180: Fix an incorrect autocorrect for Lint/InterpolationCheck in a split string. (@Starlexxx)
  • #16143: Fix an incorrect autocorrect for Lint/ParenthesesAsGroupedExpression with a command call operand. (@koic)
  • #16170: Fix an incorrect autocorrect for Lint/RedundantSplatExpansion with Array.new as a method argument. (@wleeaf)
  • #16178: Fix an incorrect autocorrect for Style/AndOr with a binary operator method operand. (@bbatsov)
  • #16150: Fix an incorrect autocorrect for Style/AndOr with a command call that takes a do block. (@Starlexxx)
  • #16178: Fix an incorrect autocorrect for Style/AndOr with a method chained onto a command call's do block. (@bbatsov)
  • #16178: Fix an incorrect autocorrect for Style/AndOr with a negated command call that takes a do block. (@bbatsov)
  • #16178: Fix an incorrect autocorrect for Style/AndOr with a pattern matching, ternary, range or defined? operand. (@bbatsov)
  • #16178: Fix an incorrect autocorrect for Style/AndOr with super called with arguments. (@bbatsov)
  • #16171: Fix an incorrect autocorrect for Style/CaseEquality with a non-numeric range. (@wleeaf)
  • #16127: Fix an incorrect autocorrect for Style/ClassAndModuleChildren with Style/DataInheritance. (@koic)
  • #16154: Fix an incorrect autocorrect for Style/EndlessMethod with modifier cops. (@koic)
  • #16167: Fix an incorrect autocorrect for Style/HashAsLastArrayItem with Layout/MultilineArrayBraceLayout. (@Starlexxx)
  • #16126: Fix an incorrect autocorrect for Style/HashLookupMethod with forwarded or splatted arguments. (@koic)
  • #16163: Fix an incorrect autocorrect for Style/MethodCallWithArgsParentheses with Layout/HeredocArgumentClosingParenthesis. (@koic)
  • #16124: Fix an incorrect autocorrect for Style/MethodDefParentheses with a line continuation. (@koic)
  • #16159: Fix an incorrect autocorrect for Style/ParenthesesAroundCondition with a command call assignment. (@koic)
  • #16137: Fix an incorrect autocorrect for Style/QuotedSymbols with a trailing backslash. (@koic)
  • #16176: Fix an incorrect autocorrect for Style/RaiseArgs compact style with e.class as the exception. (@bbatsov)
  • #16169: Fix an incorrect autocorrect for Style/RaiseArgs with a heredoc message. (@Starlexxx)
  • #16132: Fix an incorrect autocorrect for Style/RaiseArgs with a parenthesized raise. (@koic)
  • #16136: Fix an incorrect autocorrect for Style/ReduceToHash with a heredoc. (@koic)
  • #16162: Fix an incorrect autocorrect for Style/RedundantBegin with a ternary branch. (@koic)
  • #16176: Fix an incorrect autocorrect for Style/RedundantException with a heredoc in a multiline call. (@bbatsov)
  • #16177: Fix an incorrect autocorrect for Style/SingleLineMethods with code after the method's end. (@bbatsov)
  • #16157: Fix an incorrect autocorrect for Style/StringConcatenation when joining parts forms an interpolation. (@Starlexxx)
  • #16161: Fix an incorrect autocorrect for Style/TrailingCommaInArguments with argument forwarding. (@koic)
  • #16182: Fix an infinite loop for Layout/EmptyLinesAfterModuleInclusion with a logical operator. (@Starlexxx)
  • #16138: Fix an infinite loop for Layout/EmptyLinesAroundClassBody with Layout/IndentationWidth. (@koic)
  • #16142: Fix an infinite loop for Layout/EndAlignment with a class or module assigned to a constant. (@Starlexxx)
  • #16128: Fix an infinite loop for Layout/ExtraSpacing with Layout/LineLength. (@koic)
  • #16148: Fix an infinite loop for Layout/SpaceAroundOperators with Layout/LineContinuationSpacing. (@Starlexxx)
  • #16123: Fix an infinite loop for Layout/SpaceAroundOperators with hash rockets aligned on non-adjacent lines. (@koic)
  • #16144: Fix an infinite loop for Layout/SpaceInsideBlockBraces with Layout/BlockAlignment. (@koic)
  • #16145: Fix an infinite loop for Layout/SpaceInsideRangeLiteral with a nested endless range. (@koic)
  • #15609: Fix an infinite loop and an incorrect autocorrect for Style/EndlessMethod when the method definition itself has a modifier if/unless/while/until or is followed by and/or/&&/||. (@Starlexxx)
  • #16153: Fix an infinite loop for Style/RedundantBegin and Style/IfUnlessModifier with Layout/SpaceInsideParens. (@koic)
  • #16168: Fix false positives for Lint/NestedPercentLiteral when a percent literal contains format sequences such as %-5s or %.2f. (@Vitalini)
  • #16149: Fix false positives in Style/RedundantSelf with a splat in multiple assignment. (@koic)
  • #16134: Fix Layout/HashAlignment deleting a double splat before a pair on the same line. (@Starlexxx)
  • #14045: Warn about any obsolete configuration shipped by a plugin, naming the plugin and its file, instead of reporting a renamed cop against the user's .rubocop.yml. (@ihamzatarar)

Changes

  • #16066: Clarify when a cached remote configuration file is refreshed. (@pdobb)
  • #15855: Make Lint/PercentStringArray suggest an array literal for quoted strings split at whitespace. (@koic)

Don't miss a new rubocop release

NewReleases is sending notifications on new releases.