Skip to content

Conversation

@depfu
Copy link
Contributor

@depfu depfu bot commented Sep 4, 2025

Here is everything you need to know about this update. Please take a good look at what changed and the test results before merging this pull request.

What changed?

✳️ rubocop (1.76.0 → 1.80.2) · Repo · Changelog

Release Notes

1.80.2

Bug fixes

  • #14477: Fix a false positive for Style/SafeNavigation when using ternary expression with index access call with method chain. (@koic)
  • #14486: Fix false positives for Style/RedundantParentheses with unary operators and yield, super, or defined?. (@earlopain)
  • #14489: Fix false negatives for Style/RedundantParentheses with method calls taking argument without parentheses like return (x y) if z. (@earlopain)
  • #14499: Fix wrong autocorrect for Style/StringConcatenation when a double-quoted string contains escaped quotes and interpolation. (@earlopain)
  • #14502: Fix wrong autocorrect for Style/StringConcatenation when a single-quoted string contains interpolation like '#{foo}'. (@earlopain)

Changes

  • #14493: Make Naming/PredicateMethod allow the initialize method. (@koic)

1.80.1

Bug fixes

  • #14479: Don't invalidate cache when --display-time option is used on the CLI. (@lovro-bikic)
  • #14473: Fix a false negative for Style/RedundantBegin using begin with multiple statements without rescue or ensure. (@koic)
  • #14475: Fix cop errors during autocorrect for the build in LSP when analyzing as Ruby 3.4. (@earlopain)

Changes

  • #14474: Fix false negative for Layout/EndAlignment when end is not on a separate line. (@lovro-bikic)

1.80.0

Bug fixes

  • #14469: Fix an incorrect autocorrect for Style/BitwisePredicate when using & with LHS flags in conjunction with == for comparisons. (@koic)
  • #14459: Fix wrong autocorrect for Style/For with save navigation in the collection. (@earlopain)
  • #14435: Fix false negatives for regexp cops when Lint/DuplicateRegexpCharacterClassElement is enabled. (@earlopain)
  • #14419: Fix false positives for Lint/UselessAssignment when duplicate assignments appear in nested if branches inside a loop and the variable is used outside while loop. (@koic)
  • #14468: Fix false positives for Naming/MethodName when an operator method is defined using a string. (@koic)
  • #14427: Fix false positives for Style/RedundantParentheses when do...end block is wrapped in parentheses as a method argument. (@koic)
  • #14441: Better hash access handling in Style/SafeNavigation. (@issyl0)
  • #14443: Fix false positive in Layout/EmptyLinesAfterModuleInclusion when include does not have exactly one argument. (@issyl0)
  • #14424: Fix Style/SafeNavigation cop to preserve existing safe navigation in fixed code. (@martinemde)
  • #14455: Follow module inclusion with nonzero args with an empty line. (@issyl0)
  • #14445: Fix false positives for Lint/UselessAssignment with for loops when the variable is referenced in the collection. (@earlopain)
  • #14447: Fix wrong autocorrect for Style/RedundantCondition with a parenthesised method call in the condition. (@earlopain)

Changes

  • #14428: Enhance Lint/SelfAssignment to handle indexed assignment with multiple arguments. (@viralpraxis)
  • #14464: Exclude AutoCorrect and Include from configuration parameters. (@r7kamura)
  • #14472: Make Style/RedundantBegin aware of case pattern matching. (@koic)
  • #14448: Register array intersection size checks as offenses under Style/ArrayIntersect. (@lovro-bikic)
  • #14431: Support LSP TextDocumentSyncKind.Incremental. (@tmtm)
  • #14453: Update Style/RedundantBegin to register begin blocks inside if, unless, case, while and until as redundant. (@dvandersluis)

1.79.2

Bug fixes

  • #11664: Cache wasn't getting used when using parallelization. (@jvlara)
  • #14411: Fix false negatives for Layout/EmptyLinesAroundClassBody when a class body starts with a blank line and defines a multiline superclass. (@koic)
  • #14413: Fix a false positive for Layout/EmptyLinesAroundArguments with multiline strings that contain only whitespace. (@earlopain)
  • #14408: Fix false-positive for Layout/EmptyLinesAfterModuleInclusion when inclusion is called with modifier. (@r7kamura)
  • #14402: Fix false positives for Lint/UselessAssignment when duplicate assignments appear in if branch inside a loop and the variable is used outside while loop. (@koic)
  • #14416: Fix false positives for Style/MapToHash when using to_h with block argument. (@koic)
  • #14418: Fix false positives for Style/MapToSet when using to_set with block argument. (@koic)
  • #14420: Fix false positives for Style/SafeNavigation when ternary expression with operator method call with method chain. (@koic)

Changes

  • #14407: Register offense for parentheses around method calls with blocks in Style/RedundantParentheses. (@lovro-bikic)

1.79.1

Bug fixes

  • #14390: Fix wrong autocorrect for Style/ArgumentsForwarding when the method arguments contain *, ** or &, and the method call contains self as the first argument. (@earlopain)
  • #14399: Fix false positives for Layout/EmptyLinesAfterModuleInclusion when prepend is used with block methods. (@koic)
  • #14396: Fix a false positive for Style/RedundantParentheses when parentheses are used around a one-line rescue expression inside a ternary operator. (@koic)
  • #14383: Fix false positives for Lint/UselessAssignment when duplicate assignments in if branch inside a loop. (@koic)
  • #14394: Fix false positive for Lint/UselessAssignment with retry in rescue branch. (@earlopain)
  • #14386: Fix false positives for Style/RedundantParentheses when parentheses are used around a one-line rescue expression inside array or hash literals. (@koic)
  • #14395: Fix LSP handling of URI-encoded paths with spaces. (@hakanensari)

Changes

  • #14403: Enhance Naming/MethodName cop to detect offenses within alias and alias_method calls. (@viralpraxis)
  • #14389: Add support for || to Lint/LiteralAsCondition. (@zopolis4)

1.79.0

New features

Bug fixes

  • #14373: Fix an error for Style/ParallelAssignment when a lambda with parallel assignment is used on the RHS. (@koic)
  • #14370: Fix comment duplication bug in Style/AccessorGrouping separated autocorrect. (@r7kamura)
  • #14377: Fix a false positive for Lint/UselessAssignment when the assignment is inside a loop body. (@5hun-s)
  • #14355: Fix a false negative for Style/RedundantParentheses when using parentheses around a rescue expression on a one-line. (@koic)
  • #14354: Fix incorrect autocorrect for Style/AccessModifierDeclarations when using a grouped access modifier declaration. (@girasquid)
  • #14367: Fix an incorrect autocorrect for Style/SingleLineMethods when defining a single-line singleton method. (@koic)
  • #14344: Fix incorrect autocorrect for Style/SingleLineMethods when a single-line method definition contains a modifier. (@koic)
  • #14350: Fix Naming/MethodName cop false positives with define_method and operator names. (@viralpraxis)
  • #14333: Fix Naming/PredicateMethod ignoring the implicit nil from missing else branches. (@earlopain)
  • #14356: Fix Style/ItBlockParameter cop error on always style and missing block body. (@viralpraxis)
  • #14362: Update Lint/RequireRangeParentheses to not register false positives when range elements span multiple lines. (@dvandersluis)
  • #14309: Update Style/SoleNestedConditional to properly correct assignments within and. (@dvandersluis)

Changes

  • #14358: Add tsort gem to runtime dependency for Ruby 3.5-dev. (@koic)
  • #14322: Expand the scope of Style/ItAssignment to consider all local variable and method parameter names. (@dvandersluis)
  • #14378: Change Layout/SpaceAroundKeyword to offend for missing whitespace between return and opening parenthesis. (@lovro-bikic)
  • #14360: Make Layout/SpaceAroundOperators aware of alternative and as pattern matchings. (@koic)
  • #14375: Make Lint/RedundantSafeNavigation aware of builtin convert methods to_s, to_i, to_f, to_a, and to_h. (@koic)
  • #13835: Add InferNonNilReceiver config to Lint/RedundantSafeNavigation to check previous code paths if the receiver is non-nil. (@fatkodima)
  • #14381: Offend array1.any? { |elem| array2.member?(elem) } and array1.none? { |elem| array2.member?(elem) } in Style/ArrayIntersect. (@lovro-bikic)

1.78.0

New features

  • #14331: Enhance Naming/MethodName cop to detect offenses within define_method calls. (@viralpraxis)
  • #14325: Enhance Naming/MethodName cop to handle offenses within Struct members. (@viralpraxis)
  • #14335: Enhance Security/Eval cop to detect Kernel.eval calls. (@viralpraxis)

Bug fixes

  • #14343: Fix autocorrect code for Style/HashConversion to avoid syntax error. (@koic)
  • #14346: Avoid requiring parentheses for Style/SingleLineMethods. (@koic)
  • #14339: Fix bug where specifying --format disables parallelization. (@r7kamura)
  • #14300: Fix false positives for Lint/DuplicateMethods cop when self-alias trick is used. (@viralpraxis)
  • #14329: Fix false positives for Lint/LiteralAsCondition when a literal is used inside || in case condition. (@koic)
  • #14326: Fix additional autocorrection errors in Style/HashConversion for nested Hash[] calls. (@dvandersluis)
  • #14031: Honor --config options on server mode. (@steiley)
  • #14319: Fix the following incorrect autocorrect for Lint/RedundantTypeConversion when using parentheses with no arguments or any arguments. (@koic)
  • #14336: Fix incorrect autocorrect for Style/ItBlockParameter when using a single numbered parameter after multiple numbered parameters in a method chain. (@koic)
  • #11782: Move pending cops warning out of ConfigLoader. (@nobuyo)

Changes

  • #14318: Add WaywardPredicates config to Naming/PredicateMethod to handle methods that look like predicates but aren't. (@dvandersluis)

1.77.0

New features

Bug fixes

  • #14306: Fix an error for Style/HashConversion when using nested Hash[]. (@koic)
  • #14298: Fix an error for Style/SoleNestedConditional when autocorrecting nested if/unless/if. (@ssagara00)
  • #14313: Fix a false positive for Layout/SpaceBeforeBrackets when call desugared Hash#[] to lvar receiver with a space around the dot. (@koic)
  • #14292: Fix false positives for Style/RedundantParentheses when assigning a parenthesized one-line in pattern matching. (@koic)
  • #14296: Fix false positives for Style/RedundantSelf when receiver and lvalue have the same name in or-assignment. (@koic)
  • #14303: Fix Lint/SelfAssignment to allow inline RBS comments. (@Morriar)
  • #14307: Fix Style/MethodCallWithArgsParentheses false positive on forwarded keyword argument with additional arguments. (@viralpraxis)
  • #14301: Fix autocorrection syntax error for multiline expressions in Style/RedundantParentheses. (@lovro-bikic)

Changes

  • #14295: Update Naming/PredicateMethod to consider negation (!/not) as boolean values. (@dvandersluis)
  • #14255: Update Naming/PredicateMethod to treat returned predicate method calls as boolean values. (@dvandersluis)

1.76.2

Bug fixes

  • #14273: Fix an error for Lint/EmptyInterpolation when using a boolean literal inside interpolation. (@koic)
  • #14260: Fix an error for Lint/UselessDefaultValueArgument when fetch call without a receiver. (@koic)
  • #14267: Fix an error for Style/ConditionalAssignment cop when using one-line branches. (@viralpraxis)
  • #14275: Fix false positives for Style/RedundantParentheses when using parenthesized one-line pattern matching in endless method definition. (@koic)
  • #14269: Fix false positives for Style/RedundantSelf when local variable assignment name is used in nested if. (@koic)
  • #14286: Fix incorrect autocorrect for Lint/SafeNavigationChain when a safe navigation is used on the left-hand side of a - operator when inside an array. (@koic)

Changes

  • #14232: Add AllowedPatterns and AllowBangMethods configuration to Naming/PredicateMethod. (@dvandersluis)
  • #14268: Register operator expression range boundaries as offenses in Lint/AmbiguousRange. (@lovro-bikic)
  • #14264: Offend access modifiers used on top-level in Lint/UselessAccessModifier. (@lovro-bikic)
  • #14278: Register conditions wrapped in parentheses as offenses in Style/MinMaxComparison. (@lovro-bikic)

1.76.1

Bug fixes

  • #14245: Fix an error for Lint/EmptyInterpolation when using primitives in interpolation. (@ka8725)
  • #14233: Fix an error for Style/SafeNavigation when using ternary expression with index access call. (@koic)
  • #14236: Fix an error for Style/SafeNavigation when using ternary expression with operator method call. (@koic)
  • #14249: Fix false positives for Style/RedundantArrayFlatten when Array#join is used with an argument other than the default nil. (@koic)
  • #14239: Fix false positives for Style/RedundantParentheses when using one-line in pattern matching in operator. (@koic)
  • #14240: Fix Naming/PredicateMethod cop error on empty parentheses method body. (@viralpraxis)
  • #14235: Fix Style/SafeNavigation cop error on indexed assignment in ternary expression. (@viralpraxis)
  • #14247: Fix Style/SafeNavigation invalid autocorrection on double colon method call. (@viralpraxis)

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

↗️ json (indirect, 2.12.2 → 2.13.2) · Repo · Changelog

Release Notes

2.13.2

What's Changed

  • Improve duplicate key warning and errors to include the key name and point to the right caller.

Full Changelog: v2.13.1...v2.13.2

2.13.1

What's Changed

  • Fix support for older compilers without __builtin_cpu_supports.

Full Changelog: v2.13.0...v2.13.1

2.13.0

What's Changed

  • Add new allow_duplicate_key parsing options. By default a warning is now emitted when a duplicated key is encountered.
    In json 3.0 an error will be raised.
  • Optimize parsing further using SIMD to scan strings.

Full Changelog: v2.12.2...v2.13.0

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 48 commits:

↗️ parser (indirect, 3.3.8.0 → 3.3.9.0) · Repo · Changelog

Release Notes

3.3.9.0 (from changelog)

API modifications:

  • Bump maintenance branches to 3.3.9 (#1080) (Koichi ITO)
  • Bump maintenance branches to 3.2.9 (#1079) (Koichi ITO)

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 5 commits:

↗️ regexp_parser (indirect, 2.10.0 → 2.11.2) · Repo · Changelog

Release Notes

2.11.2 (from changelog)

Added

Fixed

  • scan with correct encoding when passing regopt individually (#102)

2.11.1 (from changelog)

Fixed

  • restored compatibility with Ruby < 2.6, broken in regexp_parser v2.11.0

2.11.0 (from changelog)

Added

  • a new token :escape, :utf8_hex and expression EscapeSequence::UTF8Hex
    • used for UTF-8 hex escapes, e.g. \xE2\x82\xAC representing U+20AC "€"

Fixed

  • detection of numeric backrefs > 9, e.g. ((((((((((foo))))))))))\10
    • these are only backrefs in Ruby if sufficient groups have been opened
    • they were previously always scanned as octal or literal escapes

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 25 commits:

↗️ rubocop-ast (indirect, 1.45.0 → 1.46.0) · Repo · Changelog

Release Notes

1.46.0

New features

  • #379: Support RuboCop::AST::ComplexNode. ([@koic][])

Bug fixes

  • #380: Fix RuboCop::AST::NumericNode#sign? to return boolean. ([@viralpraxis][])

1.45.1

Bug fixes

  • #382: Fix an error when using Parser gem with prism_result. (@koic)

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 15 commits:

↗️ unicode-display_width (indirect, 3.1.4 → 3.1.5) · Repo · Changelog

Release Notes

3.1.5 (from changelog)

  • Cache Emoji support level for performance reasons #30, patch by @Earlopain:

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 4 commits:


Depfu Status

Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.

All Depfu comment commands
@​depfu rebase
Rebases against your default branch and redoes this update
@​depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@​depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@​depfu cancel merge
Cancels automatic merging of this PR
@​depfu close
Closes this PR and deletes the branch
@​depfu reopen
Restores the branch and reopens this PR (if it's closed)
@​depfu pause
Ignores all future updates for this dependency and closes this PR
@​depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@​depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)

@depfu depfu bot added the depfu label Sep 4, 2025
@depfu
Copy link
Contributor Author

depfu bot commented Sep 27, 2025

Closed in favor of #481.

@depfu depfu bot closed this Sep 27, 2025
@depfu depfu bot deleted the depfu/update/rubocop-1.80.2 branch September 27, 2025 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant