Skip to content

Bump rubocop from 1.84.2 to 1.86.0 to 1.86.1#14128

Open
dependabot[bot] wants to merge 14 commits intomasterfrom
dependabot/bundler/rubocop-1.86.0
Open

Bump rubocop from 1.84.2 to 1.86.0 to 1.86.1#14128
dependabot[bot] wants to merge 14 commits intomasterfrom
dependabot/bundler/rubocop-1.86.0

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Apr 1, 2026

Bumps rubocop from 1.84.2 to 1.86.0.

Release notes

Sourced from rubocop's releases.

RuboCop v1.86.0

New features

Bug fixes

  • #15015: Fix Style/ConcatArrayLiterals autocorrect deleting code for percent literals with interpolation. (@​bbatsov)
  • #14897: Detect constant reassignment after class/module definition in Lint/ConstantReassignment. (@​ydakuka)
  • #11829: Fix false negatives for Lint/DuplicateMethods when duplicate methods are defined in anonymous classes and modules not assigned to a constant. (@​Darhazer)
  • #14988: Fix false negative in Style/RedundantParentheses when redundant parentheses around range literals in block body. (@​koic)
  • #14916: Fix false positive for Layout/MultilineMethodCallIndentation when method chain is inside a hash pair value passed to a multiline chained method call. (@​ydakuka)
  • #15010: Fix a false positive for Lint/DuplicateMethods when modules blocks are passed as method arguments. (@​5hun-s)
  • #15028: Fix a false positive for Lint/DuplicateMethods when the same method is defined in different anonymous module blocks passed to a no-receiver call (e.g. stub_const). (@​Darhazer)
  • #15021: Fix false positives in Layout/EmptyLineAfterGuardClause when using a guard clause followed by a multi-line guard clause with raise, fail, return, break, or next. (@​koic)
  • #15001: Fix false positives in Layout/RedundantLineBreak when setting InspectBlocks: true and using rescue or ensure in the block. (@​koic)
  • #14997: Fix false positives in Style/FileOpen when assigning File.open to an instance variable, class variable, global variable, or constant. (@​koic)
  • #15019: Fix false positives in Lint/DuplicateMethods when the same method is defined in anonymous module blocks passed to different receivers. (@​koic)
  • #14987: Complete ERB and Haml autocorrection in a single run. (@​alpaca-tc)
  • #15039: Fix incorrect autocorrect in Style/IfWithSemicolon when return with value is in the else branch. (@​koic)
  • #14930: Fix incorrect autocorrection for Style/IfUnlessModifier when multiple if/unless modifier forms are on the same line inside a collection. (@​ydakuka)
  • #14985: Fix incorrect autocorrection in Lint/SafeNavigationChain when chaining a method call after safe navigation in the if branch of a ternary. (@​koic)
  • #15009: Fix infinite loop in Layout/EndAlignment when end is followed by || or &&. (@​koic)
  • #14981: Fix spurious warning "does not support Safe/SafeAutoCorrect parameter" when those parameters are set for cops that don't have them in their default configuration. ([@​dduugg][])
  • #15043: Fix an error for Lint/UselessDefaultValueArgument when fetch without a receiver is inside a fetch block. (@​koic)
  • #15034: Fix incorrect autocorrection in Style/IfWithSemicolon when using single-line unless / ; / end. (@​koic)
  • #15015: Fix Style/NonNilCheck autocorrect for receivers containing spaces. (@​bbatsov)
  • #15015: Fix Style/RaiseArgs to allow anonymous keyword forwarding (raise Ex.new(**)). (@​bbatsov)
  • #14890: Fix a false positive for Lint/RedundantCopDisableDirective when a rubocop:disable comment is used to suppress Lint/EmptyWhen, Lint/EmptyConditionalBody, Lint/EmptyInPattern, or Style/SymbolProc. ([@​eugeneius][])
  • #15015: Fix false negative in Style/RedundantPercentQ for %q strings with interpolation-like syntax. (@​bbatsov)
  • #14984: Fix Style/AndOr adding unnecessary parentheses around return without arguments. ([@​eugeneius][])
  • #14945: Support files with multiple modifiers in Lint/UselessConstantScoping. ([@​h-lame][])
  • #15015: Fix Style/TrailingMethodEndStatement to detect singleton methods (def self.foo). (@​bbatsov)
  • #10822: Don't store results in cache if there are warnings. ([@​jonas054][])

Changes

  • #14718: Allow setting MaxFilesInCache to false to entirely disable cache pruning. ([@​byroot][])
  • #14989: Make Lint/RedundantSafeNavigation aware of safe navigation in conditional true branch. (@​koic)
  • #15041: Remove mcp gem from runtime dependencies. (@​koic)

... (truncated)

Changelog

Sourced from rubocop's changelog.

1.86.0 (2026-03-23)

New features

Bug fixes

  • #15015: Fix Style/ConcatArrayLiterals autocorrect deleting code for percent literals with interpolation. ([@​bbatsov][])
  • #14897: Detect constant reassignment after class/module definition in Lint/ConstantReassignment. ([@​ydakuka][])
  • #11829: Fix false negatives for Lint/DuplicateMethods when duplicate methods are defined in anonymous classes and modules not assigned to a constant. ([@​Darhazer][])
  • #14988: Fix false negative in Style/RedundantParentheses when redundant parentheses around range literals in block body. ([@​koic][])
  • #14916: Fix false positive for Layout/MultilineMethodCallIndentation when method chain is inside a hash pair value passed to a multiline chained method call. ([@​ydakuka][])
  • #15010: Fix a false positive for Lint/DuplicateMethods when modules blocks are passed as method arguments. ([@​5hun-s][])
  • #15028: Fix a false positive for Lint/DuplicateMethods when the same method is defined in different anonymous module blocks passed to a no-receiver call (e.g. stub_const). ([@​Darhazer][])
  • #15021: Fix false positives in Layout/EmptyLineAfterGuardClause when using a guard clause followed by a multi-line guard clause with raise, fail, return, break, or next. ([@​koic][])
  • #15001: Fix false positives in Layout/RedundantLineBreak when setting InspectBlocks: true and using rescue or ensure in the block. ([@​koic][])
  • #14997: Fix false positives in Style/FileOpen when assigning File.open to an instance variable, class variable, global variable, or constant. ([@​koic][])
  • #15019: Fix false positives in Lint/DuplicateMethods when the same method is defined in anonymous module blocks passed to different receivers. ([@​koic][])
  • #14987: Complete ERB and Haml autocorrection in a single run. ([@​alpaca-tc][])
  • #15039: Fix incorrect autocorrect in Style/IfWithSemicolon when return with value is in the else branch. ([@​koic][])
  • #14930: Fix incorrect autocorrection for Style/IfUnlessModifier when multiple if/unless modifier forms are on the same line inside a collection. ([@​ydakuka][])
  • #14985: Fix incorrect autocorrection in Lint/SafeNavigationChain when chaining a method call after safe navigation in the if branch of a ternary. ([@​koic][])
  • #15009: Fix infinite loop in Layout/EndAlignment when end is followed by || or &&. ([@​koic][])
  • #14981: Fix spurious warning "does not support Safe/SafeAutoCorrect parameter" when those parameters are set for cops that don't have them in their default configuration. ([@​dduugg][])
  • #15043: Fix an error for Lint/UselessDefaultValueArgument when fetch without a receiver is inside a fetch block. ([@​koic][])
  • #15034: Fix incorrect autocorrection in Style/IfWithSemicolon when using single-line unless / ; / end. ([@​koic][])
  • #15015: Fix Style/NonNilCheck autocorrect for receivers containing spaces. ([@​bbatsov][])
  • #15015: Fix Style/RaiseArgs to allow anonymous keyword forwarding (raise Ex.new(**)). ([@​bbatsov][])
  • #14890: Fix a false positive for Lint/RedundantCopDisableDirective when a rubocop:disable comment is used to suppress Lint/EmptyWhen, Lint/EmptyConditionalBody, Lint/EmptyInPattern, or Style/SymbolProc. ([@​eugeneius][])
  • #15015: Fix false negative in Style/RedundantPercentQ for %q strings with interpolation-like syntax. ([@​bbatsov][])
  • #14984: Fix Style/AndOr adding unnecessary parentheses around return without arguments. ([@​eugeneius][])
  • #14945: Support files with multiple modifiers in Lint/UselessConstantScoping. ([@​h-lame][])
  • #15015: Fix Style/TrailingMethodEndStatement to detect singleton methods (def self.foo). ([@​bbatsov][])
  • #10822: Don't store results in cache if there are warnings. ([@​jonas054][])

Changes

  • #14718: Allow setting MaxFilesInCache to false to entirely disable cache pruning. ([@​byroot][])
  • #14989: Make Lint/RedundantSafeNavigation aware of safe navigation in conditional true branch. ([@​koic][])
  • #15041: Remove mcp gem from runtime dependencies. ([@​koic][])

1.85.1 (2026-03-03)

Bug fixes

  • #14958: Fix false positives in Style/FileOpen when File.open is passed as an argument or returned from a method. ([@​sferik][])
  • #14973: Fix Style/ReduceToHash false positive when accumulator is read in key/value. ([@​sferik][])

... (truncated)

Commits
  • 2c1b30a Cut 1.86
  • d96701a Update Changelog
  • 9b019c7 [Fix rubocop#14916] Fix false positive for `Layout/MultilineMethodCallIndenta...
  • a49271d Fix incorrect autocorrection for Style/IfUnlessModifier when multiple if/...
  • 8d25311 Document MaxFilesInCache: false option for disabling cache pruning
  • 12c7d39 Detect constant reassignment after class/module definition in `Lint/ConstantR...
  • fbf175c Allow disabling cache cleanup
  • 3fcae5d [Fix #14961] Add AllowedParentClasses option to Style/EmptyClassDefinition
  • 4eba3e6 Memoize forwarded arg lookups in ArgumentsForwarding
  • fc300c7 [Fix #10822] Don't cache if there are warnings
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot Bot added dependencies ruby Pull requests that update Ruby code labels Apr 1, 2026
@github-project-automation github-project-automation Bot moved this to All the things 💤 in OFN Delivery board Apr 1, 2026
@dependabot-pr-automation dependabot-pr-automation Bot moved this from All the things 💤 to Code review 🔎 in OFN Delivery board Apr 1, 2026
@mkllnk mkllnk self-assigned this Apr 2, 2026
@mkllnk mkllnk moved this from Code review 🔎 to In Progress ⚙ in OFN Delivery board Apr 2, 2026
@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot Bot commented on behalf of github Apr 17, 2026

A newer version of rubocop exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged.

Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.84.2 to 1.86.0.
- [Release notes](https://github.com/rubocop/rubocop/releases)
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)
- [Commits](rubocop/rubocop@v1.84.2...v1.86.0)

---
updated-dependencies:
- dependency-name: rubocop
  dependency-version: 1.86.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@mkllnk mkllnk changed the title Bump rubocop from 1.84.2 to 1.86.0 Bump rubocop from 1.84.2 to 1.86.0 to 1.86.1 Apr 24, 2026
@mkllnk mkllnk force-pushed the dependabot/bundler/rubocop-1.86.0 branch from 094fad5 to c657200 Compare April 24, 2026 02:57
@mkllnk mkllnk force-pushed the dependabot/bundler/rubocop-1.86.0 branch from c657200 to 3e31402 Compare April 24, 2026 03:11
mkllnk added 2 commits April 24, 2026 13:20
The patched class does not exist anymore.
I made quite a few changes here to appease Rubocop, good changes. But
there were some indentation suggestions which would make reading the
code harder. One example:

```
--- a/app/models/spree/taxon.rb
+++ b/app/models/spree/taxon.rb
@@ -35,8 +35,8 @@ module Spree
       taxons
         .pluck('spree_taxons.id, enterprises.id AS enterprise_id')
         .each_with_object({}) do |(taxon_id, enterprise_id), collection|
-          collection[enterprise_id.to_i] ||= Set.new
-          collection[enterprise_id.to_i] << taxon_id
+        collection[enterprise_id.to_i] ||= Set.new
+        collection[enterprise_id.to_i] << taxon_id
       end
     end
```

Ideally, we wouldn't mix multi-line method chains with blocks as
argument. So I added this to the todo file for now.
@mkllnk mkllnk force-pushed the dependabot/bundler/rubocop-1.86.0 branch from 3e31402 to c809709 Compare April 24, 2026 03:20
mkllnk added 2 commits April 24, 2026 13:43
I reviewed all `respond_with` calls and none passed on an `action`
option.
@mkllnk
Copy link
Copy Markdown
Member

mkllnk commented Apr 24, 2026

This was a bit of a rabbit hole. I'm not sure if it's good to finally clean up some ancient code, triggered and helped by rubocop or if it's a waste of time and we should just regenerate the todo when the gem is bumped. 🤷

I find this cathartic ... until I have to revise my commits a dozen times.

@mkllnk mkllnk moved this from In Progress ⚙ to Code review 🔎 in OFN Delivery board Apr 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies ruby Pull requests that update Ruby code

Projects

Status: Code review 🔎

Development

Successfully merging this pull request may close these issues.

1 participant