Skip to content

Bump rubocop from 1.91.0 to 1.92.0 - #485

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/bundler/rubocop-1.92.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/bundler/rubocop-1.92.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 14, 2026

Copy link
Copy Markdown
Contributor

Bumps rubocop from 1.91.0 to 1.92.0.

Release notes

Sourced from rubocop's releases.

RuboCop v1.92.0

New features

  • #15895: Add an MCP tool that explains what cops do. (@​bbatsov)
  • #15700: Add --explain COP to describe what a cop does, how it is configured, and the examples from its documentation. (@​bbatsov)
  • #15699: Add --max-offenses-per-cop to cap how many offenses a single cop reports. (@​bbatsov)
  • #15948: Let MCP autocorrection apply the corrections of AutoCorrect: contextual cops when asked to. (@​bbatsov)
  • #15945: Let MCP autocorrection preview its changes as a diff. (@​bbatsov)
  • #15915: Let MCP inspection cap how many offenses each cop reports. (@​bbatsov)
  • #15930: Let MCP tools choose which cops run and which files they check. (@​bbatsov)
  • #14666: Make Lint/UselessAssignment register an offense for a block-captured variable that is never referenced. (@​IslamElsayed)
  • #15695: Report autocorrection edits in the JSON formatter. (@​bbatsov)
  • #15940: Report cop errors and warnings per file in --format json. (@​bbatsov)
  • #15945: Report the offenses MCP autocorrection leaves behind. (@​bbatsov)

Bug fixes

  • #15780: Fix an error for Lint/MissingCopEnableDirective when an enable-next or next +Cop directive suspends an open rubocop:disable, and a false positive for next -Cop scopes larger than MaxRangeSize. (@​bbatsov)
  • #16005: Fix a false negative for Security/JSONLoad with create_additions as the second argument. (@​bbatsov)
  • #15994: Fix a false positive for Layout/LineEndStringConcatenationIndentation with an already aligned part. (@​bbatsov)
  • #15842: Fix a false positive for Style/ExplicitBlockArgument when the method uses argument forwarding (...). (@​bbatsov)
  • #15843: Fix a false positive for Style/NegativeArrayIndex with a different length receiver. (@​bbatsov)
  • #15841: Fix a false positive for Style/RedundantFreeze with an arithmetic operation on a non-numeric receiver. (@​bbatsov)
  • #15843: Fix a false positive for Style/Sample with an endless range, which was corrected to a sample call of the wrong size. (@​bbatsov)
  • #15842: Fix a false positive for Style/SuperArguments when the method has a destructuring parameter. (@​bbatsov)
  • #15740: Fix an error for Layout/EmptyLinesAroundMethodBody when a method's arguments span multiple lines and the method ends on the last argument's line. (@​viralpraxis)
  • #15860: Fix an error for Layout/HeredocIndentation with a heredoc nested in another heredoc. (@​Starlexxx)
  • #15876: Fix an error for Lint/EmptyConditionalBody with else on the condition line. (@​koic)
  • #16008: Fix an error for Lint/UnescapedBracketInRegexp when using regexp_parser 2.11.2 and earlier. (@​bbatsov)
  • #15897: Fix an error for Metrics/ClassLength with a long singleton class in LSP mode. (@​bbatsov)
  • #15749: Fix an error for Style/ClassAndModuleChildren when a compact class or module definition appears in an expression, such as an assignment value or a method argument. (@​viralpraxis)
  • #15750: Fix an error for Style/ClassAndModuleChildren when using EnforcedStyle: compact and the nested body is indented less than Layout/IndentationWidth's Width. (@​viralpraxis)
  • #15764: Fix an error for Style/ClassAndModuleChildren when EnforcedStyle: compact compacts an irregularly indented definition and Layout/IndentationStyle enforces tabs. (@​viralpraxis)
  • #15946: Fix an error for Style/ExplicitBlockArgument with the shorthand call syntax. (@​Starlexxx)
  • #15861: Fix an error for Style/FormatString with format nested in format. (@​Starlexxx)
  • #15694: Fix an error for Style/HashSyntax when a no_mixed_keys style forces hash rockets on a hash whose value repeats its key. (@​viralpraxis)
  • #16007: Fix an error for Style/IfInsideElse when the nested if shares a line with other code. (@​bbatsov)
  • #15867: Fix an error for Style/MapIntoArray when pushing into a numbered or it block parameter. (@​Starlexxx)
  • #15949: Fix an error for Style/Next with a modifier condition wrapping a block that has its own offense. (@​Starlexxx)
  • #15797: Fix an error for Style/RedundantCondition when autocorrecting a redundant condition nested in the else branch of another one. (@​koic)
  • #15928: Fix an error for Style/Semicolon when a semicolon follows an unparenthesized keyword parameter or hash pattern. (@​viralpraxis)
  • #15714: Fix an error for Style/YodaCondition when one operand of a comparison contains another comparison the cop also corrects. (@​viralpraxis)
  • #16011: Fix an error for the pacman formatter, which crashed with undefined method 'winsize' whether or not the output was a terminal. (@​bbatsov)
  • #15731: Fix an error when caching offenses whose correction or justification cannot be represented as UTF-8. (@​viralpraxis)
  • #16015: Fix an error when cleaning up a result cache that can't be written. (@​bbatsov)
  • #15702: Fix an error when interrupting RuboCop with Ctrl-C. (@​viralpraxis)
  • #16015: Fix an error when the cache directory or config can't be accessed under a sandbox. (@​bbatsov)
  • #16015: Fix an error when the result cache directory exists but can't be written. (@​bbatsov)
  • #15817: Fix an incorrect autocorrect for Gemspec/OrderedDependencies when the same dependency declaration appears more than once in the gemspec. (@​viralpraxis)
  • #15903: Fix an incorrect autocorrect for Layout/ClassStructure with blank line cops. (@​koic)

... (truncated)

Changelog

Sourced from rubocop's changelog.

1.92.0 (2026-10-10)

New features

  • #15895: Add an MCP tool that explains what cops do. ([@​bbatsov][])
  • #15700: Add --explain COP to describe what a cop does, how it is configured, and the examples from its documentation. ([@​bbatsov][])
  • #15699: Add --max-offenses-per-cop to cap how many offenses a single cop reports. ([@​bbatsov][])
  • #15948: Let MCP autocorrection apply the corrections of AutoCorrect: contextual cops when asked to. ([@​bbatsov][])
  • #15945: Let MCP autocorrection preview its changes as a diff. ([@​bbatsov][])
  • #15915: Let MCP inspection cap how many offenses each cop reports. ([@​bbatsov][])
  • #15930: Let MCP tools choose which cops run and which files they check. ([@​bbatsov][])
  • #14666: Make Lint/UselessAssignment register an offense for a block-captured variable that is never referenced. ([@​IslamElsayed][])
  • #15695: Report autocorrection edits in the JSON formatter. ([@​bbatsov][])
  • #15940: Report cop errors and warnings per file in --format json. ([@​bbatsov][])
  • #15945: Report the offenses MCP autocorrection leaves behind. ([@​bbatsov][])

Bug fixes

  • #15780: Fix an error for Lint/MissingCopEnableDirective when an enable-next or next +Cop directive suspends an open rubocop:disable, and a false positive for next -Cop scopes larger than MaxRangeSize. ([@​bbatsov][])
  • #16005: Fix a false negative for Security/JSONLoad with create_additions as the second argument. ([@​bbatsov][])
  • #15994: Fix a false positive for Layout/LineEndStringConcatenationIndentation with an already aligned part. ([@​bbatsov][])
  • #15842: Fix a false positive for Style/ExplicitBlockArgument when the method uses argument forwarding (...). ([@​bbatsov][])
  • #15843: Fix a false positive for Style/NegativeArrayIndex with a different length receiver. ([@​bbatsov][])
  • #15841: Fix a false positive for Style/RedundantFreeze with an arithmetic operation on a non-numeric receiver. ([@​bbatsov][])
  • #15843: Fix a false positive for Style/Sample with an endless range, which was corrected to a sample call of the wrong size. ([@​bbatsov][])
  • #15842: Fix a false positive for Style/SuperArguments when the method has a destructuring parameter. ([@​bbatsov][])
  • #15740: Fix an error for Layout/EmptyLinesAroundMethodBody when a method's arguments span multiple lines and the method ends on the last argument's line. ([@​viralpraxis][])
  • #15860: Fix an error for Layout/HeredocIndentation with a heredoc nested in another heredoc. ([@​Starlexxx][])
  • #15876: Fix an error for Lint/EmptyConditionalBody with else on the condition line. ([@​koic][])
  • #16008: Fix an error for Lint/UnescapedBracketInRegexp when using regexp_parser 2.11.2 and earlier. ([@​bbatsov][])
  • #15897: Fix an error for Metrics/ClassLength with a long singleton class in LSP mode. ([@​bbatsov][])
  • #15749: Fix an error for Style/ClassAndModuleChildren when a compact class or module definition appears in an expression, such as an assignment value or a method argument. ([@​viralpraxis][])
  • #15750: Fix an error for Style/ClassAndModuleChildren when using EnforcedStyle: compact and the nested body is indented less than Layout/IndentationWidth's Width. ([@​viralpraxis][])
  • #15764: Fix an error for Style/ClassAndModuleChildren when EnforcedStyle: compact compacts an irregularly indented definition and Layout/IndentationStyle enforces tabs. ([@​viralpraxis][])
  • #15946: Fix an error for Style/ExplicitBlockArgument with the shorthand call syntax. ([@​Starlexxx][])
  • #15861: Fix an error for Style/FormatString with format nested in format. ([@​Starlexxx][])
  • #15694: Fix an error for Style/HashSyntax when a no_mixed_keys style forces hash rockets on a hash whose value repeats its key. ([@​viralpraxis][])
  • #16007: Fix an error for Style/IfInsideElse when the nested if shares a line with other code. ([@​bbatsov][])
  • #15867: Fix an error for Style/MapIntoArray when pushing into a numbered or it block parameter. ([@​Starlexxx][])
  • #15949: Fix an error for Style/Next with a modifier condition wrapping a block that has its own offense. ([@​Starlexxx][])
  • #15797: Fix an error for Style/RedundantCondition when autocorrecting a redundant condition nested in the else branch of another one. ([@​koic][])
  • #15928: Fix an error for Style/Semicolon when a semicolon follows an unparenthesized keyword parameter or hash pattern. ([@​viralpraxis][])
  • #15714: Fix an error for Style/YodaCondition when one operand of a comparison contains another comparison the cop also corrects. ([@​viralpraxis][])
  • #16011: Fix an error for the pacman formatter, which crashed with undefined method 'winsize' whether or not the output was a terminal. ([@​bbatsov][])
  • #15731: Fix an error when caching offenses whose correction or justification cannot be represented as UTF-8. ([@​viralpraxis][])
  • #16015: Fix an error when cleaning up a result cache that can't be written. ([@​bbatsov][])
  • #15702: Fix an error when interrupting RuboCop with Ctrl-C. ([@​viralpraxis][])
  • #16015: Fix an error when the cache directory or config can't be accessed under a sandbox. ([@​bbatsov][])
  • #16015: Fix an error when the result cache directory exists but can't be written. ([@​bbatsov][])
  • #15817: Fix an incorrect autocorrect for Gemspec/OrderedDependencies when the same dependency declaration appears more than once in the gemspec. ([@​viralpraxis][])

... (truncated)

Commits
  • 4172ce5 Cut 1.92
  • 7e75867 Require net/http in the references:verify task
  • 7c107cb Update Changelog
  • 81c7d42 Fix an error when cleaning up a result cache that can't be written
  • 3b70129 Fix an error when the result cache directory exists but can't be written
  • 830275f Fix an error when the cache directory or config can't be accessed under a san...
  • 38b43fc Remove a check from Style/SingleLineMethods that the shared endless method ...
  • 9897fb1 Fix an incorrect autocorrect for Style/EndlessMethod and `Style/SingleLineM...
  • 1a2221e Fix an incorrect autocorrect for Style/ReturnNilInPredicateMethodDefinition...
  • f2f4fac Fix an incorrect autocorrect for Style/EndlessMethod with a modifier condit...
  • 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)

Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.91.0 to 1.92.0.
- [Release notes](https://github.com/rubocop/rubocop/releases)
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)
- [Commits](rubocop/rubocop@v1.91.0...v1.92.0)

---
updated-dependencies:
- dependency-name: rubocop
  dependency-version: 1.92.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot requested a review from a team as a code owner October 14, 2026 02:19
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file ruby Pull requests that update Ruby code labels Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file ruby Pull requests that update Ruby code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants