Commit 1bd49eb
authored
Update dependency rubocop to '~> 1.85.0' (#717)
This PR contains the following updates:
| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/) |
[Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [rubocop](https://rubocop.org/)
([source](https://redirect.github.com/rubocop/rubocop),
[changelog](https://redirect.github.com/rubocop/rubocop/releases/tag/v1.85.1))
| `'~> 1.81.0'` → `'~> 1.85.0'` |

|

|
---
### Release Notes
<details>
<summary>rubocop/rubocop (rubocop)</summary>
###
[`v1.85.0`](https://redirect.github.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1850-2026-02-26)
[Compare
Source](https://redirect.github.com/rubocop/rubocop/compare/v1.84.2...v1.85.0)
##### New features
-
[#​14921](https://redirect.github.com/rubocop/rubocop/pull/14921):
Add `mise.toml` as source for TargetRubyVersion.
(\[[@​kitsane](https://redirect.github.com/kitsane)]\[])
-
[#​14925](https://redirect.github.com/rubocop/rubocop/pull/14925):
Add new `Lint/UnreachablePatternBranch` cop.
(\[[@​sferik](https://redirect.github.com/sferik)]\[])
-
[#​14942](https://redirect.github.com/rubocop/rubocop/pull/14942):
Add new `Style/FileOpen` cop.
(\[[@​sferik](https://redirect.github.com/sferik)]\[])
-
[#​14939](https://redirect.github.com/rubocop/rubocop/pull/14939):
Add new `Style/MapJoin` cop.
(\[[@​sferik](https://redirect.github.com/sferik)]\[])
-
[#​14924](https://redirect.github.com/rubocop/rubocop/pull/14924):
Add new `Style/OneClassPerFile` cop.
(\[[@​sferik](https://redirect.github.com/sferik)]\[])
-
[#​14923](https://redirect.github.com/rubocop/rubocop/pull/14923):
Add new `Style/PartitionInsteadOfDoubleSelect` cop.
(\[[@​sferik](https://redirect.github.com/sferik)]\[])
-
[#​14811](https://redirect.github.com/rubocop/rubocop/pull/14811):
Add new `Style/PredicateWithKind` cop.
(\[[@​sferik](https://redirect.github.com/sferik)]\[])
-
[#​14938](https://redirect.github.com/rubocop/rubocop/pull/14938):
Add new `Style/ReduceToHash` cop.
(\[[@​sferik](https://redirect.github.com/sferik)]\[])
-
[#​14812](https://redirect.github.com/rubocop/rubocop/pull/14812):
Add new `Style/RedundantMinMaxBy` cop.
(\[[@​sferik](https://redirect.github.com/sferik)]\[])
-
[#​13501](https://redirect.github.com/rubocop/rubocop/issues/13501):
Add new `Style/RedundantStructKeywordInit` cop.
(\[[@​koic](https://redirect.github.com/koic)]\[])
-
[#​14808](https://redirect.github.com/rubocop/rubocop/pull/14808):
Add new `Style/SelectByKind` cop.
(\[[@​sferik](https://redirect.github.com/sferik)]\[])
-
[#​14810](https://redirect.github.com/rubocop/rubocop/pull/14810):
Add new `Style/SelectByRange` cop.
(\[[@​sferik](https://redirect.github.com/sferik)]\[])
-
[#​14922](https://redirect.github.com/rubocop/rubocop/pull/14922):
Add new `Style/TallyMethod` cop.
(\[[@​sferik](https://redirect.github.com/sferik)]\[])
-
[#​14773](https://redirect.github.com/rubocop/rubocop/issues/14773):
Add new `Lint/DataDefineOverride` cop.
(\[[@​bbatsov](https://redirect.github.com/bbatsov)]\[])
-
[#​14781](https://redirect.github.com/rubocop/rubocop/pull/14781):
Add new `InternalAffairs/ItblockHandler` cop.
(\[[@​bbatsov](https://redirect.github.com/bbatsov)]\[])
-
[#​14911](https://redirect.github.com/rubocop/rubocop/pull/14911):
Support built-in MCP server (experimental).
(\[[@​koic](https://redirect.github.com/koic)]\[])
##### Bug fixes
-
[#​14829](https://redirect.github.com/rubocop/rubocop/issues/14829):
Allow classes without a superclass in `Style/EmptyClassDefinition`.
(\[[@​koic](https://redirect.github.com/koic)]\[])
-
[#​14873](https://redirect.github.com/rubocop/rubocop/issues/14873):
Fix an error in `Style/NegatedWhile` when the last expression of an
`until` condition is negated.
(\[[@​koic](https://redirect.github.com/koic)]\[])
-
[#​14827](https://redirect.github.com/rubocop/rubocop/issues/14827):
Improve `Style/EmptyClassDefinition` message wording.
(\[[@​bbatsov](https://redirect.github.com/bbatsov)]\[])
-
[#​14800](https://redirect.github.com/rubocop/rubocop/issues/14800):
Fix false obsolete configuration error for extracted cops when loaded as
plugins. (\[[@​bbatsov](https://redirect.github.com/bbatsov)]\[])
-
[#​14928](https://redirect.github.com/rubocop/rubocop/issues/14928):
Fix a false positive for `Lint/Void` when `nil` is used in `case`
branch. (\[[@​5hun-s](https://redirect.github.com/5hun-s)]\[])
-
[#​14857](https://redirect.github.com/rubocop/rubocop/issues/14857):
Fix false positives in `Style/IfUnlessModifier` when modifier forms are
used inside string interpolations.
(\[[@​koic](https://redirect.github.com/koic)]\[])
-
[#​8773](https://redirect.github.com/rubocop/rubocop/issues/8773):
Fix false positives in `Style/HashTransformKeys` and
`Style/HashTransformValues`.
(\[[@​sferik](https://redirect.github.com/sferik)]\[])
-
[#​6963](https://redirect.github.com/rubocop/rubocop/issues/6963):
Fix false positives in `Lint/Void` for `each` blocks where the return
value may be meaningful (e.g., `Enumerator#each`).
(\[[@​sferik](https://redirect.github.com/sferik)]\[])
-
[#​14931](https://redirect.github.com/rubocop/rubocop/issues/14931):
Ignore directive comments inside comments.
(\[[@​koic](https://redirect.github.com/koic)]\[])
-
[#​14834](https://redirect.github.com/rubocop/rubocop/issues/14834):
Fix `Layout/IndentationWidth` false positive for chained method blocks
when `EnforcedStyleAlignWith` is `start_of_line`.
(\[[@​krororo](https://redirect.github.com/krororo)]\[])
-
[#​14756](https://redirect.github.com/rubocop/rubocop/issues/14756):
Fix `Lint/Void` to detect void expressions in `case`/`when` branches.
(\[[@​bbatsov](https://redirect.github.com/bbatsov)]\[])
-
[#​14874](https://redirect.github.com/rubocop/rubocop/issues/14874):
Fix a `Parser::ClobberingError` in `Lint/UselessAssignment` when
autocorrecting a useless assignment that wraps a block containing
another useless assignment.
(\[[@​koic](https://redirect.github.com/koic)]\[])
-
[#​14880](https://redirect.github.com/rubocop/rubocop/issues/14880):
Fix a false negative in `Layout/MultilineAssignmentLayout` when using
`numblock` or `itblock` with `SupportedTypes: ['block']`.
(\[[@​bbatsov](https://redirect.github.com/bbatsov)]\[])
-
[#​11462](https://redirect.github.com/rubocop/rubocop/issues/11462):
Fix over-indentation when autocorrecting nested hashes with
`Layout/FirstHashElementIndentation`.
(\[[@​ydakuka](https://redirect.github.com/ydakuka)]\[])
-
[#​14880](https://redirect.github.com/rubocop/rubocop/issues/14880):
Recognize block on different line from left side of multi-line
assignment in `Layout/MultilineAssignmentLayout`.
(\[[@​sanfrecce-osaka](https://redirect.github.com/sanfrecce-osaka)]\[])
-
[#​14641](https://redirect.github.com/rubocop/rubocop/issues/14641):
Fix false positive in `Lint/RedundantSafeNavigation` when using
`&.respond_to?` with methods defined on `Object` (e.g., `:class`).
(\[[@​bbatsov](https://redirect.github.com/bbatsov)]\[])
-
[#​14098](https://redirect.github.com/rubocop/rubocop/issues/14098):
Mark `Lint/SafeNavigationConsistency` autocorrect as unsafe.
(\[[@​bbatsov](https://redirect.github.com/bbatsov)]\[])
-
[#​14791](https://redirect.github.com/rubocop/rubocop/issues/14791):
Fix autocorrect producing `SyntaxError` in `Lint/InterpolationCheck`
when single quoted string contains double quotes with invalid
interpolation.
(\[[@​ydakuka](https://redirect.github.com/ydakuka)]\[])
##### Changes
-
[#​14872](https://redirect.github.com/rubocop/rubocop/pull/14872):
Tweak autocorrection in `Style/HashAsLastArrayItem` when multiline hash
elements. (\[[@​koic](https://redirect.github.com/koic)]\[])
-
[#​14917](https://redirect.github.com/rubocop/rubocop/pull/14917):
Change `Style/EndlessMethod` cop to consider receivers.
(\[[@​fatkodima](https://redirect.github.com/fatkodima)]\[])
-
[#​14851](https://redirect.github.com/rubocop/rubocop/pull/14851):
Reduce precision in 'Finished in X.X seconds' message to 5 decimal
places. (\[[@​ZimbiX](https://redirect.github.com/ZimbiX)]\[])
-
[#​14895](https://redirect.github.com/rubocop/rubocop/issues/14895):
Rename `class_definition` to `class_keyword` in `EnforcedStyle` of
`Style/EmptyClassDefinition`.
(\[[@​koic](https://redirect.github.com/koic)]\[])
-
[#​14956](https://redirect.github.com/rubocop/rubocop/pull/14956):
Add support for `String.new` with interpolated strings to
`Style/RedundantInterpolationUnfreeze`.
(\[[@​lovro-bikic](https://redirect.github.com/lovro-bikic)]\[])
-
[#​14955](https://redirect.github.com/rubocop/rubocop/pull/14955):
Register redundant parentheses around block body in
`Style/RedundantParentheses`.
(\[[@​lovro-bikic](https://redirect.github.com/lovro-bikic)]\[])
###
[`v1.84.2`](https://redirect.github.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1842-2026-02-12)
[Compare
Source](https://redirect.github.com/rubocop/rubocop/compare/v1.84.1...v1.84.2)
##### Bug fixes
-
[#​14854](https://redirect.github.com/rubocop/rubocop/issues/14854):
Fix a clobbering error in `Style/BlockDelimiters` when autocorrecting
nested multi-line blocks with adjacent curly braces.
(\[[@​koic](https://redirect.github.com/koic)]\[])
-
[#​14837](https://redirect.github.com/rubocop/rubocop/issues/14837):
Fix an error for `Style/IfUnlessModifier` when the first value uses a
normal `if` and the others use modifier `if`.
(\[[@​koic](https://redirect.github.com/koic)]\[])
-
[#​14858](https://redirect.github.com/rubocop/rubocop/issues/14858):
Fix an infinite loop error in `Layout/FirstArgumentIndentation` when
first arguments are over-indented in nested method calls.
(\[[@​koic](https://redirect.github.com/koic)]\[])
-
[#​14843](https://redirect.github.com/rubocop/rubocop/issues/14843):
Fix an error in `Layout/MultilineMethodCallIndentation` when a multiline
method call follows a hash access.
(\[[@​koic](https://redirect.github.com/koic)]\[])
-
[#​14859](https://redirect.github.com/rubocop/rubocop/issues/14859):
Fix an error in `Layout/MultilineMethodCallIndentation` when a multiline
method call includes a keyword argument whose value is a method call
with a block. (\[[@​koic](https://redirect.github.com/koic)]\[])
-
[#​14839](https://redirect.github.com/rubocop/rubocop/pull/14839):
Fix a false positive for `Layout/EmptyLinesAfterModuleInclusion` when
`include` is nested inside an array.
(\[[@​eugeneius](https://redirect.github.com/eugeneius)]\[])
-
[#​7436](https://redirect.github.com/rubocop/rubocop/issues/7436):
Fix `Style/FormatStringToken` to not autocorrect strings outside of
format method context in aggressive mode.
(\[[@​ydakuka](https://redirect.github.com/ydakuka)]\[])
-
[#​14841](https://redirect.github.com/rubocop/rubocop/issues/14841):
Fix false negatives in `Style/HashAsLastArrayItem` when an array
contains only a single hash element.
(\[[@​koic](https://redirect.github.com/koic)]\[])
-
[#​14865](https://redirect.github.com/rubocop/rubocop/issues/14865):
Fix false negatives in `Style/MethodDefParentheses` when using splat or
forwarding arguments without parentheses.
(\[[@​koic](https://redirect.github.com/koic)]\[])
-
[#​14833](https://redirect.github.com/rubocop/rubocop/issues/14833):
Fix false positive for `Layout/MultilineMethodCallIndentation` when a
multi-dot method chain is inside a hash pair value.
(\[[@​ydakuka](https://redirect.github.com/ydakuka)]\[])
-
[#​14847](https://redirect.github.com/rubocop/rubocop/issues/14847):
Fix false positive for `Layout/MultilineMethodCallIndentation` when a
method is chained after a single-line block.
(\[[@​ydakuka](https://redirect.github.com/ydakuka)]\[])
-
[#​14867](https://redirect.github.com/rubocop/rubocop/pull/14867):
Fix `Offense#highlighted_area` for `PseudoSourceRange` locations.
(\[[@​rafaelfranca](https://redirect.github.com/rafaelfranca)]\[])
-
[#​14861](https://redirect.github.com/rubocop/rubocop/issues/14861):
Fix an error in `Style/IfUnlessModifier` when the first value uses a
normal `if` and the others use ternary operator.
(\[[@​koic](https://redirect.github.com/koic)]\[])
-
[#​14816](https://redirect.github.com/rubocop/rubocop/issues/14816):
Use toplevel cache configs for remote configuration files.
(\[[@​nekketsuuu](https://redirect.github.com/nekketsuuu)]\[])
###
[`v1.84.1`](https://redirect.github.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1841-2026-02-02)
[Compare
Source](https://redirect.github.com/rubocop/rubocop/compare/v1.84.0...v1.84.1)
##### Bug fixes
-
[#​14803](https://redirect.github.com/rubocop/rubocop/pull/14803):
Fix an error for `Layout/IndentationWidth` cop.
(\[[@​viralpraxis](https://redirect.github.com/viralpraxis)]\[])
-
[#​14806](https://redirect.github.com/rubocop/rubocop/issues/14806):
Fix an error in `Style/NegativeArrayIndex` when using `self` as array
with implicit `self` receiver.
(\[[@​koic](https://redirect.github.com/koic)]\[])
-
[#​14813](https://redirect.github.com/rubocop/rubocop/pull/14813):
Fix opt-in cop comments taking precedence over configuration file
exclude patterns.
(\[[@​afrase](https://redirect.github.com/afrase)]\[])
-
[#​14819](https://redirect.github.com/rubocop/rubocop/pull/14819):
Fix incorrect autocorrect for `Style/GuardClause` when using heredoc as
an argument of method call in raise in `else` branch.
(\[[@​koic](https://redirect.github.com/koic)]\[])
-
[#​14805](https://redirect.github.com/rubocop/rubocop/issues/14805):
Bring back the original indentation from before version 1.84.0.
(\[[@​Magikdidi24](https://redirect.github.com/Magikdidi24)]\[])
-
[#​12754](https://redirect.github.com/rubocop/rubocop/issues/12754):
Fix an infinite loop for `Style/IfUnlessModifier` when multiple
`if`/`unless` statements share the same line in arrays, method
arguments, or hash values.
(\[[@​ydakuka](https://redirect.github.com/ydakuka)]\[])
-
[#​14817](https://redirect.github.com/rubocop/rubocop/issues/14817):
Fix an infinite loop between `Layout/FirstArgumentIndentation` and
`Layout/LineLength` when correcting method chains.
(\[[@​ydakuka](https://redirect.github.com/ydakuka)]\[])
-
[#​11513](https://redirect.github.com/rubocop/rubocop/issues/11513):
Fix `Layout/MultilineMethodCallIndentation` to properly handle method
chains inside hash pair values.
(\[[@​ydakuka](https://redirect.github.com/ydakuka)]\[])
-
[#​14814](https://redirect.github.com/rubocop/rubocop/pull/14814):
Fix push/pop directives to properly handle nested scopes and state
restoration.
(\[[@​Magikdidi24](https://redirect.github.com/Magikdidi24)]\[])
##### Changes
-
[#​14823](https://redirect.github.com/rubocop/rubocop/issues/14823):
Add the built-in `infinite?` method to the allowlists for
`Naming/PredicateMethod`, `Style/IfWithBooleanLiteralBranches`, and
`Style/RedundantCondition`, in addition to the existing `nonzero?`.
(\[[@​koic](https://redirect.github.com/koic)]\[])
-
[#​14735](https://redirect.github.com/rubocop/rubocop/pull/14735):
Remove deprecated InjectDefaults handling.
(\[[@​afurm](https://redirect.github.com/afurm)]\[])
###
[`v1.84.0`](https://redirect.github.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1840-2026-01-27)
[Compare
Source](https://redirect.github.com/rubocop/rubocop/compare/v1.82.1...v1.84.0)
##### New features
-
[#​14516](https://redirect.github.com/rubocop/rubocop/issues/14516):
Add `AllowImplicitArrayLiterals` to `Layout/FirstArrayElementLineBreak`.
(\[[@​koic](https://redirect.github.com/koic)]\[])
-
[#​14750](https://redirect.github.com/rubocop/rubocop/pull/14750):
Add new `Style/ReverseFind` cop.
(\[[@​koic](https://redirect.github.com/koic)]\[])
-
[#​12343](https://redirect.github.com/rubocop/rubocop/issues/12343):
Add new `Style/EmptyClassDefinition` cop to enforce consistent style for
empty class definitions. The cop can enforce either a two-line class
definition or `Class.new` for classes with no body.
(\[[@​ydakuka](https://redirect.github.com/ydakuka)]\[])
-
[#​14769](https://redirect.github.com/rubocop/rubocop/pull/14769):
Add new `Style/HashLookupMethod` cop to enforce `Hash#[]` vs
`Hash#fetch` preference.
(\[[@​sferik](https://redirect.github.com/sferik)]\[])
-
[#​12051](https://redirect.github.com/rubocop/rubocop/issues/12051):
Add new `Style/NegativeArrayIndex` cop to enforce using negative array
indices instead of calculating array length minus a value. The cop
handles both simple index patterns and range patterns, and recognizes
preserving methods and their combinations.
(\[[@​ydakuka](https://redirect.github.com/ydakuka)]\[])
-
[#​14633](https://redirect.github.com/rubocop/rubocop/pull/14633):
Make a new system to handle push and pop locally.
(\[[@​Magikdidi24](https://redirect.github.com/Magikdidi24)]\[])
-
[#​14722](https://redirect.github.com/rubocop/rubocop/pull/14722):
Support `TargetRubyVersion 4.1` (experimental).
(\[[@​koic](https://redirect.github.com/koic)]\[])
##### Bug fixes
-
[#​14697](https://redirect.github.com/rubocop/rubocop/issues/14697):
Allow non-method calls in `Categories` for `Layout/ClassStructure`.
(\[[@​fatkodima](https://redirect.github.com/fatkodima)]\[])
-
[#​14784](https://redirect.github.com/rubocop/rubocop/pull/14784):
Fix an error for `Style/GuardClause` when using heredoc as an argument
of raise in `else` branch and `if` branch is empty.
(\[[@​koic](https://redirect.github.com/koic)]\[])
-
[#​14790](https://redirect.github.com/rubocop/rubocop/pull/14790):
Fix an error for `Style/HashLookupMethod` cop when there's no receiver.
(\[[@​viralpraxis](https://redirect.github.com/viralpraxis)]\[])
-
[#​14779](https://redirect.github.com/rubocop/rubocop/issues/14779):
Fix autocorrect crash with `ruby_extractor` when using `offset: 0` and
different source buffers.
(\[[@​ydakuka](https://redirect.github.com/ydakuka)]\[])
-
[#​14762](https://redirect.github.com/rubocop/rubocop/pull/14762):
Fix false negatives for `Style/RedundantCondition` when the branches
contains constant assignment.
(\[[@​koic](https://redirect.github.com/koic)]\[])
-
[#​14751](https://redirect.github.com/rubocop/rubocop/issues/14751):
Fix `--force-default-config` not preventing project config loading when
used with options that access configuration.
(\[[@​sakuro](https://redirect.github.com/sakuro)]\[])
-
[#​14783](https://redirect.github.com/rubocop/rubocop/issues/14783):
Fix incorrect autocorrect for `Style/HashSyntax` when shorthand syntax
is used in condition of `if`/`unless`/`while`/`until`.
(\[[@​ydakuka](https://redirect.github.com/ydakuka)]\[])
-
[#​14747](https://redirect.github.com/rubocop/rubocop/issues/14747):
Fix a regression in`Layout/IndentationWidth` by adding a new
`EnforcedStyleAlignWith` style parameter.
(\[[@​MikeMcQuaid](https://redirect.github.com/MikeMcQuaid)]\[])
-
[#​14716](https://redirect.github.com/rubocop/rubocop/issues/14716):
Fix an infinite loop error for `Layout/LineLength` when `SplitStrings`
option is enabled and strings span multiple lines.
(\[[@​HariprasanthMSH](https://redirect.github.com/HariprasanthMSH)]\[])
-
[#​14763](https://redirect.github.com/rubocop/rubocop/issues/14763):
Fix an infinite loop error for `Layout/IndentationWidth` and
`Layout/IndentationConsistency` when using `EnforcedStyle:
indented_internal_methods` with method chain blocks.
(\[[@​ydakuka](https://redirect.github.com/ydakuka)]\[])
-
[#​9373](https://redirect.github.com/rubocop/rubocop/issues/9373):
Fix an infinite loop error for `Layout/IndentationWidth` when
autocorrecting mixed tabs and spaces in blocks. Fix an infinite loop
error for `Layout/DefEndAlignment` and `Layout/IndentationStyle` when
autocorrecting mixed tabs and spaces. Autocorrection for tabs is
disabled in `AlignmentCorrector` for indentation offenses, but enabled
for `align_end`.
(\[[@​ydakuka](https://redirect.github.com/ydakuka)]\[])
-
[#​12295](https://redirect.github.com/rubocop/rubocop/issues/12295):
Fix `Layout/FirstArgumentIndentation` to correct entire method calls and
chains for nested calls.
(\[[@​ydakuka](https://redirect.github.com/ydakuka)]\[])
-
[#​12527](https://redirect.github.com/rubocop/rubocop/issues/12527):
Fix `Offense#highlighted_area` to return a valid
`Parser::Source::Range`.
(\[[@​ydakuka](https://redirect.github.com/ydakuka)]\[])
-
[#​14801](https://redirect.github.com/rubocop/rubocop/pull/14801):
Preserve source tabs in Clang and Tap formatters when displaying offense
highlight.
(\[[@​lovro-bikic](https://redirect.github.com/lovro-bikic)]\[])
-
[#​14761](https://redirect.github.com/rubocop/rubocop/issues/14761):
Improved the remote configuration file name on the cache location.
(\[[@​Jack12816](https://redirect.github.com/Jack12816)]\[])
-
[#​14778](https://redirect.github.com/rubocop/rubocop/pull/14778):
Fix a false positive for `Security/JSONLoad` when `create_additions`
option is passed with other options in a hash.
(\[[@​wktk](https://redirect.github.com/wktk)]\[])
-
[#​14796](https://redirect.github.com/rubocop/rubocop/pull/14796):
Handle logical and operator assignment nodes in variable branch
handling.
(\[[@​lovro-bikic](https://redirect.github.com/lovro-bikic)]\[])
##### Changes
-
[#​14753](https://redirect.github.com/rubocop/rubocop/pull/14753):
Add support for `squish` and `squish!` applied to heredoc to
`Layout/HeredocIndentation`.
(\[[@​lovro-bikic](https://redirect.github.com/lovro-bikic)]\[])
-
[#​14798](https://redirect.github.com/rubocop/rubocop/pull/14798):
Recognize `Forwardable` methods in `Lint/DuplicateMethods`.
(\[[@​lovro-bikic](https://redirect.github.com/lovro-bikic)]\[])
-
[#​14793](https://redirect.github.com/rubocop/rubocop/pull/14793):
Make `Lint/RedundantSplatExpansion` aware of constant assignment.
(\[[@​koic](https://redirect.github.com/koic)]\[])
-
[#​14770](https://redirect.github.com/rubocop/rubocop/pull/14770):
Make `Style/AccessModifierDeclarations` aware of self class.
(\[[@​koic](https://redirect.github.com/koic)]\[])
-
[#​14748](https://redirect.github.com/rubocop/rubocop/pull/14748):
Add support for other `Module` member existence methods to
`Style/ModuleMemberExistenceCheck`.
(\[[@​lovro-bikic](https://redirect.github.com/lovro-bikic)]\[])
-
[#​14795](https://redirect.github.com/rubocop/rubocop/pull/14795):
Add `AllowedMethods` configuration to
`Style/ModuleMemberExistenceCheck`.
(\[[@​lovro-bikic](https://redirect.github.com/lovro-bikic)]\[])
###
[`v1.82.1`](https://redirect.github.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1821-2025-12-24)
[Compare
Source](https://redirect.github.com/rubocop/rubocop/compare/v1.82.0...v1.82.1)
##### Bug fixes
-
[#​14736](https://redirect.github.com/rubocop/rubocop/issues/14736):
Fix an error for `Style/TrailingCommaInArguments` when
`EnforcedStyleForMultiline` is `consistent_comma` and keyword arguments
use a trailing comma.
(\[[@​koic](https://redirect.github.com/koic)]\[])
-
[#​14737](https://redirect.github.com/rubocop/rubocop/issues/14737):
Fix crash in `Layout/RedundantLineBreak` when `Layout/LineLength` is
disabled. (\[[@​ydakuka](https://redirect.github.com/ydakuka)]\[])
-
[#​14719](https://redirect.github.com/rubocop/rubocop/pull/14719):
Fix crash on long lines when `Layout/LineLength` is disabled.
(\[[@​floriandejonckheere](https://redirect.github.com/floriandejonckheere)]\[])
-
[#​14743](https://redirect.github.com/rubocop/rubocop/issues/14743):
Fix false positives for `Layout/MultilineMethodCallIndentation` when
multiline method chain with block has expected indent width and the
method is preceded by splat or double splat.
(\[[@​koic](https://redirect.github.com/koic)]\[])
-
[#​12297](https://redirect.github.com/rubocop/rubocop/issues/12297):
Fix false negative in `Layout/IndentationWidth` for multiline method
chain blocks. (\[[@​rscq](https://redirect.github.com/rscq)]\[])
-
[#​14730](https://redirect.github.com/rubocop/rubocop/pull/14730):
Fix the cache implementation to use consistent cache keys across
workers. (\[[@​byroot](https://redirect.github.com/byroot)]\[])
-
[#​14559](https://redirect.github.com/rubocop/rubocop/issues/14559):
Fix false positives for `Lint/UselessAssignment` when a variable is
assigned in loop body and used in loop condition.
(\[[@​ydakuka](https://redirect.github.com/ydakuka)]\[])
###
[`v1.82.0`](https://redirect.github.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1820-2025-12-17)
[Compare
Source](https://redirect.github.com/rubocop/rubocop/compare/v1.81.7...v1.82.0)
##### New features
-
[#​14655](https://redirect.github.com/rubocop/rubocop/issues/14655):
Add `AllowRBSInlineAnnotation` option to `Layout/LineLength`.
(\[[@​koic](https://redirect.github.com/koic)]\[])
-
[#​14569](https://redirect.github.com/rubocop/rubocop/issues/14569):
Add `IncludedMacroPatterns` configuration option to
`Style/MethodCallWithArgsParentheses` for pattern-based macro method
enforcement.
(\[[@​mmenanno](https://redirect.github.com/mmenanno)]\[])
-
[#​14670](https://redirect.github.com/rubocop/rubocop/pull/14670):
Add new cop `Style/ModuleMemberExistenceCheck`.
(\[[@​lovro-bikic](https://redirect.github.com/lovro-bikic)]\[])
-
[#​14644](https://redirect.github.com/rubocop/rubocop/pull/14644):
Support `TargetRubyVersion 4.0` (experimental).
(\[[@​koic](https://redirect.github.com/koic)]\[])
##### Bug fixes
-
[#​14649](https://redirect.github.com/rubocop/rubocop/pull/14649):
Fix an error for `Lint/LiteralAsCondition` when there are literals in
multiple branches.
(\[[@​viralpraxis](https://redirect.github.com/viralpraxis)]\[])
-
[#​14678](https://redirect.github.com/rubocop/rubocop/pull/14678):
Fix an error when running deprecated `rake rubocop:auto_correct` task.
(\[[@​koic](https://redirect.github.com/koic)]\[])
-
[#​14650](https://redirect.github.com/rubocop/rubocop/pull/14650):
Fix wrong autocorrect for `Lint/RedundantSplatExpansion` when splatting
a single literal.
(\[[@​earlopain](https://redirect.github.com/earlopain)]\[])
-
[#​14703](https://redirect.github.com/rubocop/rubocop/pull/14703):
Fix false negatives for `Layout/RescueEnsureAlignment` when using self
class definition.
(\[[@​koic](https://redirect.github.com/koic)]\[])
-
[#​14706](https://redirect.github.com/rubocop/rubocop/issues/14706):
Fix false negatives for `Lint/NoReturnInBeginEndBlocks` when assigning
instance variable, class variable, global variable, or constant.
(\[[@​koic](https://redirect.github.com/koic)]\[])
-
[#​14715](https://redirect.github.com/rubocop/rubocop/pull/14715):
Fix false positives for `Layout/EmptyLineAfterGuardClause` when a guard
clause follows a multiline heredoc in a parenthesized method call.
(\[[@​koic](https://redirect.github.com/koic)]\[])
-
[#​14667](https://redirect.github.com/rubocop/rubocop/issues/14667):
Fix false positives for `Layout/EndAlignment` when a conditional
assignment is used on the same line and the `end` with a safe navigation
method call is aligned.
(\[[@​koic](https://redirect.github.com/koic)]\[])
-
[#​14688](https://redirect.github.com/rubocop/rubocop/pull/14688):
Fix false positives for `Layout/EndAlignment` when a conditional
assignment is used on the same line and the `end` with a numbered block
or `it` block method call is aligned.
(\[[@​koic](https://redirect.github.com/koic)]\[])
-
[#​14699](https://redirect.github.com/rubocop/rubocop/pull/14699):
Fix false positives for `Lint/RedundantSafeNavigation` when the receiver
is used outside the singleton method definition scope.
(\[[@​koic](https://redirect.github.com/koic)]\[])
-
[#​14663](https://redirect.github.com/rubocop/rubocop/issues/14663):
Fix false positives for `Style/EndlessMethod` when multiline or xstring
heredoc is used in method body.
(\[[@​koic](https://redirect.github.com/koic)]\[])
-
[#​10173](https://redirect.github.com/rubocop/rubocop/issues/10173):
Fix false positives for `Style/TrailingCommaInArguments` when
`EnforcedStyleForMultiline` is set to `consistent_comma` and a multiline
braced hash argument appears after another argument.
(\[[@​koic](https://redirect.github.com/koic)]\[])
-
[#​14680](https://redirect.github.com/rubocop/rubocop/pull/14680):
Handle all `OptionParser` errors when running `rubocop` with input that
causes an error.
(\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[])
-
[#​14658](https://redirect.github.com/rubocop/rubocop/pull/14658):
Fix incorrect behavior when `Layout/LineLength` is disabled.
(\[[@​koic](https://redirect.github.com/koic)]\[])
-
[#​14704](https://redirect.github.com/rubocop/rubocop/pull/14704):
Fix incorrect Position character value in LSP.
(\[[@​tmtm](https://redirect.github.com/tmtm)]\[])
-
[#​14619](https://redirect.github.com/rubocop/rubocop/issues/14619):
Store remote configuration caches in cache root.
(\[[@​Jack12816](https://redirect.github.com/Jack12816)]\[])
-
[#​14476](https://redirect.github.com/rubocop/rubocop/issues/14476):
Fix `Style/ClassAndModuleChildren` to skip compact style definitions
inside another class or module when `EnforcedStyle: nested`.
(\[[@​rscq](https://redirect.github.com/rscq)]\[])
-
[#​14281](https://redirect.github.com/rubocop/rubocop/issues/14281):
Update `Layout/EndAlignment` with `EnforcedStyleAlignWith: variable` to
handle conditionals inside `begin` nodes properly.
(\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[])
##### Changes
-
[#​14662](https://redirect.github.com/rubocop/rubocop/pull/14662):
Add autocorrection for `Lint/UselessOr`.
(\[[@​r7kamura](https://redirect.github.com/r7kamura)]\[])
-
[#​14668](https://redirect.github.com/rubocop/rubocop/pull/14668):
Exclude `Severity` from configuration parameters.
(\[[@​r7kamura](https://redirect.github.com/r7kamura)]\[])
-
[#​14684](https://redirect.github.com/rubocop/rubocop/issues/14684):
Make `Style/CaseEquality` allow regexp case equality where the receiver
is a regexp literal.
(\[[@​koic](https://redirect.github.com/koic)]\[])
-
[#​14645](https://redirect.github.com/rubocop/rubocop/pull/14645):
Change `Lint/CircularArgumentReference` to detect offenses within long
assignment chains.
(\[[@​viralpraxis](https://redirect.github.com/viralpraxis)]\[])
-
[#​14642](https://redirect.github.com/rubocop/rubocop/pull/14642):
Make `Gemspec/RubyVersionGlobalsUsage` aware of `Ruby::VERSION`.
(\[[@​koic](https://redirect.github.com/koic)]\[])
-
[#​14695](https://redirect.github.com/rubocop/rubocop/issues/14695):
Make `Layout/EmptyLineAfterMagicComment` aware of `# rbs_inline` magic
comment. (\[[@​koic](https://redirect.github.com/koic)]\[])
-
[#​10147](https://redirect.github.com/rubocop/rubocop/issues/10147):
Make `Lint/ElseLayout` allow a single-line `else` body in `then`
single-line conditional.
(\[[@​koic](https://redirect.github.com/koic)]\[])
-
[#​14661](https://redirect.github.com/rubocop/rubocop/pull/14661):
Make `Lint/RedundantRequireStatement` aware of `pathname` when analyzing
Ruby 4.0. (\[[@​koic](https://redirect.github.com/koic)]\[])
-
[#​14698](https://redirect.github.com/rubocop/rubocop/pull/14698):
Make `Lint/UnreachableCode` aware of singleton method redefinition.
(\[[@​koic](https://redirect.github.com/koic)]\[])
-
[#​14677](https://redirect.github.com/rubocop/rubocop/pull/14677):
Make `Style/RedundantArgument` aware of `to_i`.
(\[[@​koic](https://redirect.github.com/koic)]\[])
-
[#​14660](https://redirect.github.com/rubocop/rubocop/pull/14660):
Rename `IgnoreCopDirectives` to `AllowCopDirectives` in
`Layout/LineLength`.
(\[[@​koic](https://redirect.github.com/koic)]\[])
-
[#​14492](https://redirect.github.com/rubocop/rubocop/issues/14492):
Revert
[#​14492](https://redirect.github.com/rubocop/rubocop/issues/14492),
which added support for LSP positionEncoding 'utf-8' and 'utf-32' due to
critical performance regression reports.
(\[[@​koic](https://redirect.github.com/koic)]\[])
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/line/line-bot-sdk-ruby).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi41OS4wIiwidXBkYXRlZEluVmVyIjoiNDMuNTYuMCIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6WyJkZXBlbmRlbmN5IHVwZ3JhZGUiXX0=-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>1 parent 6c61221 commit 1bd49eb
2 files changed
Lines changed: 15 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
50 | 52 | | |
| 53 | + | |
| 54 | + | |
51 | 55 | | |
52 | 56 | | |
53 | 57 | | |
54 | 58 | | |
55 | | - | |
| 59 | + | |
56 | 60 | | |
57 | 61 | | |
58 | | - | |
| 62 | + | |
59 | 63 | | |
60 | 64 | | |
61 | 65 | | |
| |||
84 | 88 | | |
85 | 89 | | |
86 | 90 | | |
87 | | - | |
| 91 | + | |
88 | 92 | | |
89 | 93 | | |
90 | 94 | | |
| 95 | + | |
91 | 96 | | |
92 | 97 | | |
93 | 98 | | |
94 | 99 | | |
95 | | - | |
| 100 | + | |
96 | 101 | | |
97 | 102 | | |
98 | | - | |
| 103 | + | |
99 | 104 | | |
100 | | - | |
| 105 | + | |
101 | 106 | | |
102 | 107 | | |
103 | 108 | | |
| |||
125 | 130 | | |
126 | 131 | | |
127 | 132 | | |
128 | | - | |
| 133 | + | |
129 | 134 | | |
130 | 135 | | |
131 | 136 | | |
| |||
146 | 151 | | |
147 | 152 | | |
148 | 153 | | |
149 | | - | |
| 154 | + | |
150 | 155 | | |
151 | 156 | | |
152 | 157 | | |
| |||
0 commit comments