Bump rubocop from 1.80.2 to 1.81.0
dependenciesruby
Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.80.2 to 1.81.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/rubocop/rubocop/releases">rubocop's releases</a>.</em></p>
<blockquote>
<h2>RuboCop v1.81.0</h2>
<h3>New features</h3>
<ul>
<li><a href="https://redirect.github.com/rubocop/rubocop/pull/14512">#14512</a>: Add <code>Style/ArrayIntersectWithSingleElement</code> cop. (<a href="https://github.com/r7kamura"><code>@r7kamura</code></a>)</li>
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/10971">#10971</a>: Support <code>EnforcedStyleForMultiline: diff_comma</code> in <code>Style/TrailingCommaInArguments</code>. (<a href="https://github.com/akouryy"><code>@akouryy</code></a>)</li>
</ul>
<h3>Bug fixes</h3>
<ul>
<li><a href="https://redirect.github.com/rubocop/rubocop/pull/14560">#14560</a>: Fix an error for <code>Style/NilComparison</code> cop when using the <code>var.==(nil)</code> and <code>var.===(nil)</code> syntax. (<a href="https://github.com/viralpraxis"><code>@viralpraxis</code></a>)</li>
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/14535">#14535</a>: Fix autocorrect for <code>Style/ExplicitBlockArgument</code> when there are two methods that share the same implementation. (<a href="https://github.com/earlopain"><code>@earlopain</code></a>)</li>
<li><a href="https://redirect.github.com/rubocop/rubocop/pull/14527">#14527</a>: Fix false negatives for <code>Style/NumberedParameters</code> and <code>Style/ItBlockParameter</code> when using multiline method chain with <code>EnforcedStyle: allow_single_line</code>. (<a href="https://github.com/koic"><code>@koic</code></a>)</li>
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/14522">#14522</a>: Fix false negatives for <code>Layout/MultilineOperationIndentation</code> when using indented code on LHS of equality operator in modifier method definition. (<a href="https://github.com/koic"><code>@koic</code></a>)</li>
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/14496">#14496</a>: Fix false negatives for <code>Layout/EmptyLineBetweenDefs</code> for <code>AllowAdjacentOneLineDefs: false</code> and <code>DefLikeMacros</code> that take no block. (<a href="https://github.com/earlopain"><code>@earlopain</code></a>)</li>
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/14553">#14553</a>: Fix false positives when <code>EnforcedStyle: allowed_in_returns</code> and <code>!!</code> appears across multiple lines in return position. (<a href="https://github.com/koic"><code>@koic</code></a>)</li>
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/14557">#14557</a>: Fix false positives for <code>Style/RedundantParentheses</code> when parentheses are used around a one-line <code>rescue</code> expression as a condition. (<a href="https://github.com/koic"><code>@koic</code></a>)</li>
<li><a href="https://redirect.github.com/rubocop/rubocop/pull/14525">#14525</a>: Fix false positives for <code>Style/RedundantRegexpEscape</code> when an escaped variable sigil follows <code>#</code> (e.g., <code>/#\@foo/</code>, <code>/#\@@bar/</code>, <code>/#\$baz/</code>). (<a href="https://github.com/koic"><code>@koic</code></a>)</li>
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/14529">#14529</a>: Fix false negative in <code>Layout/RescueEnsureAlignment</code> with a block whose send node is split over multiple lines. (<a href="https://github.com/dvandersluis"><code>@dvandersluis</code></a>)</li>
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/14528">#14528</a>: Fix <code>Style/RedundantFormat</code> when the format string has a variable width that isn't given as a literal value. (<a href="https://github.com/dvandersluis"><code>@dvandersluis</code></a>)</li>
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/14541">#14541</a>: Fix gemspec parsing error when <code>ParserEngine: parser_prism</code> is configured in a base config file. (<a href="https://github.com/sudoremo"><code>@sudoremo</code></a>)</li>
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/14544">#14544</a>: Fix an incorrect autocorrect for <code>Lint/Void</code> when using a return value in assignment method definition. (<a href="https://github.com/koic"><code>@koic</code></a>)</li>
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/14543">#14543</a>: Fix an incorrect autocorrect for <code>Style/RedundantRegexpArgument</code> when using escaped single quote character. (<a href="https://github.com/koic"><code>@koic</code></a>)</li>
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/14540">#14540</a>: Fix an incorrect autocorrect for <code>Style/UnlessElse</code> when using <code>unless</code> with <code>then</code>. (<a href="https://github.com/koic"><code>@koic</code></a>)</li>
<li><a href="https://redirect.github.com/rubocop/rubocop/pull/14507">#14507</a>: Fix the built-in Ruby LSP add-on not restarting when config files (<code>.rubocop.yml</code>, <code>.rubocop_todo.yml</code>) change. (<a href="https://github.com/earlopain"><code>@earlopain</code></a>)</li>
<li><a href="https://redirect.github.com/rubocop/rubocop/pull/14514">#14514</a>: Fix the built-in Ruby LSP add-on not respecting <code>.rubocop</code> config file. (<a href="https://github.com/earlopain"><code>@earlopain</code></a>)</li>
<li><a href="https://redirect.github.com/rubocop/rubocop/pull/14508">#14508</a>: Fix the built-in Ruby LSP add-on getting in an irrecoverable state when the config is invalid on startup. (<a href="https://github.com/earlopain"><code>@earlopain</code></a>)</li>
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/14534">#14534</a>: Prevent <code>Layout/LineLength</code> autocorrection from splitting a block if its receiver contains a heredoc. (<a href="https://github.com/dvandersluis"><code>@dvandersluis</code></a>)</li>
<li><a href="https://redirect.github.com/rubocop/rubocop/pull/14497">#14497</a>: Fix a false positive for <code>Lint/ShadowedArgument</code> when assigning inside a <code>rescue</code> block. (<a href="https://github.com/earlopain"><code>@earlopain</code></a>)</li>
</ul>
<h3>Changes</h3>
<ul>
<li><a href="https://redirect.github.com/rubocop/rubocop/pull/14492">#14492</a>: Add support for LSP <code>positionEncoding</code> <code>utf-8</code> and <code>utf-32</code>. (<a href="https://github.com/tmtm"><code>@tmtm</code></a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md">rubocop's changelog</a>.</em></p>
<blockquote>
<h2>1.81.0 (2025-09-25)</h2>
<h3>New features</h3>
<ul>
<li><a href="https://redirect.github.com/rubocop/rubocop/pull/14512">#14512</a>: Add <code>Style/ArrayIntersectWithSingleElement</code> cop. ([<a href="https://github.com/r7kamura"><code>@r7kamura</code></a>][])</li>
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/10971">#10971</a>: Support <code>EnforcedStyleForMultiline: diff_comma</code> in <code>Style/TrailingCommaInArguments</code>. ([<a href="https://github.com/akouryy"><code>@akouryy</code></a>][])</li>
</ul>
<h3>Bug fixes</h3>
<ul>
<li><a href="https://redirect.github.com/rubocop/rubocop/pull/14560">#14560</a>: Fix an error for <code>Style/NilComparison</code> cop when using the <code>var.==(nil)</code> and <code>var.===(nil)</code> syntax. ([<a href="https://github.com/viralpraxis"><code>@viralpraxis</code></a>][])</li>
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/14535">#14535</a>: Fix autocorrect for <code>Style/ExplicitBlockArgument</code> when there are two methods that share the same implementation. ([<a href="https://github.com/earlopain"><code>@earlopain</code></a>][])</li>
<li><a href="https://redirect.github.com/rubocop/rubocop/pull/14527">#14527</a>: Fix false negatives for <code>Style/NumberedParameters</code> and <code>Style/ItBlockParameter</code> when using multiline method chain with <code>EnforcedStyle: allow_single_line</code>. ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li>
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/14522">#14522</a>: Fix false negatives for <code>Layout/MultilineOperationIndentation</code> when using indented code on LHS of equality operator in modifier method definition. ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li>
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/14496">#14496</a>: Fix false negatives for <code>Layout/EmptyLineBetweenDefs</code> for <code>AllowAdjacentOneLineDefs: false</code> and <code>DefLikeMacros</code> that take no block. ([<a href="https://github.com/earlopain"><code>@earlopain</code></a>][])</li>
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/14553">#14553</a>: Fix false positives when <code>EnforcedStyle: allowed_in_returns</code> and <code>!!</code> appears across multiple lines in return position. ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li>
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/14557">#14557</a>: Fix false positives for <code>Style/RedundantParentheses</code> when parentheses are used around a one-line <code>rescue</code> expression as a condition. ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li>
<li><a href="https://redirect.github.com/rubocop/rubocop/pull/14525">#14525</a>: Fix false positives for <code>Style/RedundantRegexpEscape</code> when an escaped variable sigil follows <code>#</code> (e.g., <code>/#\@foo/</code>, <code>/#\@@bar/</code>, <code>/#\$baz/</code>). ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li>
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/14529">#14529</a>: Fix false negative in <code>Layout/RescueEnsureAlignment</code> with a block whose send node is split over multiple lines. ([<a href="https://github.com/dvandersluis"><code>@dvandersluis</code></a>][])</li>
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/14528">#14528</a>: Fix <code>Style/RedundantFormat</code> when the format string has a variable width that isn't given as a literal value. ([<a href="https://github.com/dvandersluis"><code>@dvandersluis</code></a>][])</li>
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/14541">#14541</a>: Fix gemspec parsing error when <code>ParserEngine: parser_prism</code> is configured in a base config file. ([<a href="https://github.com/sudoremo"><code>@sudoremo</code></a>][])</li>
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/14544">#14544</a>: Fix an incorrect autocorrect for <code>Lint/Void</code> when using a return value in assignment method definition. ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li>
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/14543">#14543</a>: Fix an incorrect autocorrect for <code>Style/RedundantRegexpArgument</code> when using escaped single quote character. ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li>
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/14540">#14540</a>: Fix an incorrect autocorrect for <code>Style/UnlessElse</code> when using <code>unless</code> with <code>then</code>. ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li>
<li><a href="https://redirect.github.com/rubocop/rubocop/pull/14507">#14507</a>: Fix the built-in Ruby LSP add-on not restarting when config files (<code>.rubocop.yml</code>, <code>.rubocop_todo.yml</code>) change. ([<a href="https://github.com/earlopain"><code>@earlopain</code></a>][])</li>
<li><a href="https://redirect.github.com/rubocop/rubocop/pull/14514">#14514</a>: Fix the built-in Ruby LSP add-on not respecting <code>.rubocop</code> config file. ([<a href="https://github.com/earlopain"><code>@earlopain</code></a>][])</li>
<li><a href="https://redirect.github.com/rubocop/rubocop/pull/14508">#14508</a>: Fix the built-in Ruby LSP add-on getting in an irrecoverable state when the config is invalid on startup. ([<a href="https://github.com/earlopain"><code>@earlopain</code></a>][])</li>
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/14534">#14534</a>: Prevent <code>Layout/LineLength</code> autocorrection from splitting a block if its receiver contains a heredoc. ([<a href="https://github.com/dvandersluis"><code>@dvandersluis</code></a>][])</li>
<li><a href="https://redirect.github.com/rubocop/rubocop/pull/14497">#14497</a>: Fix a false positive for <code>Lint/ShadowedArgument</code> when assigning inside a <code>rescue</code> block. ([<a href="https://github.com/earlopain"><code>@earlopain</code></a>][])</li>
</ul>
<h3>Changes</h3>
<ul>
<li><a href="https://redirect.github.com/rubocop/rubocop/pull/14492">#14492</a>: Add support for LSP <code>positionEncoding</code> <code>utf-8</code> and <code>utf-32</code>. ([<a href="https://github.com/tmtm"><code>@tmtm</code></a>][])</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/rubocop/rubocop/commit/386bf1051f54de1dacb641198947dd9705e969a5"><code>386bf10</code></a> Cut 1.81</li>
<li><a href="https://github.com/rubocop/rubocop/commit/148250d5b0efc89bdafd6941b6cc1312db049b13"><code>148250d</code></a> Update Changelog</li>
<li><a href="https://github.com/rubocop/rubocop/commit/face2444d6250fbcecd5fdd0b5dff9904e6ff5fb"><code>face244</code></a> Fix an error for <code>Style/NilComparison</code> cop</li>
<li><a href="https://github.com/rubocop/rubocop/commit/d8c1d4cd128fc02dc55108f9eecd22194a1293df"><code>d8c1d4c</code></a> Fix an error for <code>InternalAffairsOnSendWithoutOnCSend</code> with <code>alias_method</code> an...</li>
<li><a href="https://github.com/rubocop/rubocop/commit/ec897eacdad53c5626e01c60b126c5384f3705d6"><code>ec897ea</code></a> Merge pull request <a href="https://redirect.github.com/rubocop/rubocop/issues/14551">#14551</a> from Earlopain/empty-line-def-macro-no-block</li>
<li><a href="https://github.com/rubocop/rubocop/commit/076ba7b6d7e15264a62f7dd88a46ea881ea1d4d7"><code>076ba7b</code></a> [Fix <a href="https://redirect.github.com/rubocop/rubocop/issues/14496">#14496</a>] Fix false negatives for <code>Layout/EmptyLineBetweenDefs</code> with `Allo...</li>
<li><a href="https://github.com/rubocop/rubocop/commit/f669aaaf771a7879341fb5e27e0796ec4377157f"><code>f669aaa</code></a> [Fix <a href="https://redirect.github.com/rubocop/rubocop/issues/14557">#14557</a>] Fix false positives for <code>Style/RedundantParentheses</code></li>
<li><a href="https://github.com/rubocop/rubocop/commit/d0bc9e161c936e104e12a90ea09382578ce4964a"><code>d0bc9e1</code></a> [Fix <a href="https://redirect.github.com/rubocop/rubocop/issues/14541">#14541</a>] Fix gemspec parsing error when parser_prism is configured</li>
<li><a href="https://github.com/rubocop/rubocop/commit/3a0260d0a2ac9e90a3eb0365b907c6066ae701ac"><code>3a0260d</code></a> [Fix <a href="https://redirect.github.com/rubocop/rubocop/issues/10971">#10971</a>] Add <code>diff_comma</code> option to Style/TrailingCommaInArguments</li>
<li><a href="https://github.com/rubocop/rubocop/commit/f92d6e166f8dc019e3a72bb95d4bb8683a5450ff"><code>f92d6e1</code></a> [Fix <a href="https://redirect.github.com/rubocop/rubocop/issues/14544">#14544</a>] Fix an incorrect autocorrect for <code>Lint/Void</code></li>
<li>Additional commits viewable in <a href="https://github.com/rubocop/rubocop/compare/v1.80.2...v1.81.0">compare view</a></li>
</ul>
</details>
<br />
[](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
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-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
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 merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@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)
</details>
合并状态:未合并 0 条评论