Commit b23e59f
authored
Build(deps-dev): Bump rubocop from 1.78.0 to 1.79.1 (#932)
Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.78.0 to
1.79.1.
<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.79.1</h2>
<h3>Bug fixes</h3>
<ul>
<li><a
href="https://redirect.github.com/rubocop/rubocop/issues/14390">#14390</a>:
Fix wrong autocorrect for <code>Style/ArgumentsForwarding</code> when
the method arguments contain <code>*</code>, <code>**</code> or
<code>&</code>, and the method call contains <code>self</code> as
the first argument. (<a
href="https://github.com/earlopain"><code>@earlopain</code></a>)</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/issues/14399">#14399</a>:
Fix false positives for
<code>Layout/EmptyLinesAfterModuleInclusion</code> when
<code>prepend</code> is used with block methods. (<a
href="https://github.com/koic"><code>@koic</code></a>)</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/pull/14396">#14396</a>:
Fix a false positive for <code>Style/RedundantParentheses</code> when
parentheses are used around a one-line <code>rescue</code> expression
inside a ternary operator. (<a
href="https://github.com/koic"><code>@koic</code></a>)</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/issues/14383">#14383</a>:
Fix false positives for <code>Lint/UselessAssignment</code> when
duplicate assignments in <code>if</code> branch inside a loop. (<a
href="https://github.com/koic"><code>@koic</code></a>)</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/issues/14394">#14394</a>:
Fix false positive for <code>Lint/UselessAssignment</code> with
<code>retry</code> in <code>rescue</code> branch. (<a
href="https://github.com/earlopain"><code>@earlopain</code></a>)</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/issues/14386">#14386</a>:
Fix false positives for <code>Style/RedundantParentheses</code> when
parentheses are used around a one-line <code>rescue</code> expression
inside array or hash literals. (<a
href="https://github.com/koic"><code>@koic</code></a>)</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/pull/14395">#14395</a>:
Fix LSP handling of URI-encoded paths with spaces. (<a
href="https://github.com/hakanensari"><code>@hakanensari</code></a>)</li>
</ul>
<h3>Changes</h3>
<ul>
<li><a
href="https://redirect.github.com/rubocop/rubocop/pull/14403">#14403</a>:
Enhance <code>Naming/MethodName</code> cop to detect offenses within
<code>alias</code> and <code>alias_method</code> calls. (<a
href="https://github.com/viralpraxis"><code>@viralpraxis</code></a>)</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/pull/14389">#14389</a>:
Add support for <code>||</code> to <code>Lint/LiteralAsCondition</code>.
(<a href="https://github.com/zopolis4"><code>@zopolis4</code></a>)</li>
</ul>
<h2>RuboCop v1.79.0</h2>
<h3>New features</h3>
<ul>
<li><a
href="https://redirect.github.com/rubocop/rubocop/pull/14348">#14348</a>:
Add new cop <code>Layout/EmptyLinesAfterModuleInclusion</code>. ([<a
href="https://github.com/lovro-bikic"><code>@lovro-bikic</code></a>][])</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/pull/14374">#14374</a>:
Enhance <code>Naming/MethodName</code> cop to detect offenses within
<code>Data</code> members. (<a
href="https://github.com/viralpraxis"><code>@viralpraxis</code></a>)</li>
</ul>
<h3>Bug fixes</h3>
<ul>
<li><a
href="https://redirect.github.com/rubocop/rubocop/pull/14373">#14373</a>:
Fix an error for <code>Style/ParallelAssignment</code> when a lambda
with parallel assignment is used on the RHS. (<a
href="https://github.com/koic"><code>@koic</code></a>)</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/issues/14370">#14370</a>:
Fix comment duplication bug in <code>Style/AccessorGrouping</code>
separated autocorrect. ([<a
href="https://github.com/r7kamura"><code>@r7kamura</code></a>][])</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/pull/14377">#14377</a>:
Fix a false positive for <code>Lint/UselessAssignment</code> when the
assignment is inside a loop body. ([<a
href="https://github.com/5hun-s"><code>@5hun-s</code></a>][])</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/pull/14355">#14355</a>:
Fix a false negative for <code>Style/RedundantParentheses</code> when
using parentheses around a <code>rescue</code> expression on a one-line.
(<a href="https://github.com/koic"><code>@koic</code></a>)</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/pull/14354">#14354</a>:
Fix incorrect autocorrect for
<code>Style/AccessModifierDeclarations</code> when using a grouped
access modifier declaration. ([<a
href="https://github.com/girasquid"><code>@girasquid</code></a>][])</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/issues/14367">#14367</a>:
Fix an incorrect autocorrect for <code>Style/SingleLineMethods</code>
when defining a single-line singleton method. (<a
href="https://github.com/koic"><code>@koic</code></a>)</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/issues/14344">#14344</a>:
Fix incorrect autocorrect for <code>Style/SingleLineMethods</code> when
a single-line method definition contains a modifier. (<a
href="https://github.com/koic"><code>@koic</code></a>)</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/issues/14350">#14350</a>:
Fix <code>Naming/MethodName</code> cop false positives with
<code>define_method</code> and operator names. (<a
href="https://github.com/viralpraxis"><code>@viralpraxis</code></a>)</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/issues/14333">#14333</a>:
Fix <code>Naming/PredicateMethod</code> ignoring the implicit
<code>nil</code> from missing <code>else</code> branches. (<a
href="https://github.com/earlopain"><code>@earlopain</code></a>)</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/pull/14356">#14356</a>:
Fix <code>Style/ItBlockParameter</code> cop error on <code>always</code>
style and missing block body. (<a
href="https://github.com/viralpraxis"><code>@viralpraxis</code></a>)</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/issues/14362">#14362</a>:
Update <code>Lint/RequireRangeParentheses</code> to not register false
positives when range elements span multiple lines. ([<a
href="https://github.com/dvandersluis"><code>@dvandersluis</code></a>][])</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/issues/14309">#14309</a>:
Update <code>Style/SoleNestedConditional</code> to properly correct
assignments within <code>and</code>. ([<a
href="https://github.com/dvandersluis"><code>@dvandersluis</code></a>][])</li>
</ul>
<h3>Changes</h3>
<ul>
<li><a
href="https://redirect.github.com/rubocop/rubocop/pull/14358">#14358</a>:
Add <code>tsort</code> gem to runtime dependency for Ruby 3.5-dev. (<a
href="https://github.com/koic"><code>@koic</code></a>)</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/issues/14322">#14322</a>:
Expand the scope of <code>Style/ItAssignment</code> to consider all
local variable and method parameter names. ([<a
href="https://github.com/dvandersluis"><code>@dvandersluis</code></a>][])</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/pull/14378">#14378</a>:
Change <code>Layout/SpaceAroundKeyword</code> to offend for missing
whitespace between <code>return</code> and opening parenthesis. ([<a
href="https://github.com/lovro-bikic"><code>@lovro-bikic</code></a>][])</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/pull/14360">#14360</a>:
Make <code>Layout/SpaceAroundOperators</code> aware of alternative and
as pattern matchings. (<a
href="https://github.com/koic"><code>@koic</code></a>)</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/pull/14375">#14375</a>:
Make <code>Lint/RedundantSafeNavigation</code> aware of builtin convert
methods <code>to_s</code>, <code>to_i</code>, <code>to_f</code>,
<code>to_a</code>, and <code>to_h</code>. (<a
href="https://github.com/koic"><code>@koic</code></a>)</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</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.79.1 (2025-07-31)</h2>
<h3>Bug fixes</h3>
<ul>
<li><a
href="https://redirect.github.com/rubocop/rubocop/issues/14390">#14390</a>:
Fix wrong autocorrect for <code>Style/ArgumentsForwarding</code> when
the method arguments contain <code>*</code>, <code>**</code> or
<code>&</code>, and the method call contains <code>self</code> as
the first argument. ([<a
href="https://github.com/earlopain"><code>@earlopain</code></a>][])</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/issues/14399">#14399</a>:
Fix false positives for
<code>Layout/EmptyLinesAfterModuleInclusion</code> when
<code>prepend</code> is used with block methods. ([<a
href="https://github.com/koic"><code>@koic</code></a>][])</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/pull/14396">#14396</a>:
Fix a false positive for <code>Style/RedundantParentheses</code> when
parentheses are used around a one-line <code>rescue</code> expression
inside a ternary operator. ([<a
href="https://github.com/koic"><code>@koic</code></a>][])</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/issues/14383">#14383</a>:
Fix false positives for <code>Lint/UselessAssignment</code> when
duplicate assignments in <code>if</code> branch inside a loop. ([<a
href="https://github.com/koic"><code>@koic</code></a>][])</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/issues/14394">#14394</a>:
Fix false positive for <code>Lint/UselessAssignment</code> with
<code>retry</code> in <code>rescue</code> branch. ([<a
href="https://github.com/earlopain"><code>@earlopain</code></a>][])</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/issues/14386">#14386</a>:
Fix false positives for <code>Style/RedundantParentheses</code> when
parentheses are used around a one-line <code>rescue</code> expression
inside array or hash literals. ([<a
href="https://github.com/koic"><code>@koic</code></a>][])</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/pull/14395">#14395</a>:
Fix LSP handling of URI-encoded paths with spaces. ([<a
href="https://github.com/hakanensari"><code>@hakanensari</code></a>][])</li>
</ul>
<h3>Changes</h3>
<ul>
<li><a
href="https://redirect.github.com/rubocop/rubocop/pull/14403">#14403</a>:
Enhance <code>Naming/MethodName</code> cop to detect offenses within
<code>alias</code> and <code>alias_method</code> calls. ([<a
href="https://github.com/viralpraxis"><code>@viralpraxis</code></a>][])</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/pull/14389">#14389</a>:
Add support for <code>||</code> to <code>Lint/LiteralAsCondition</code>.
([<a
href="https://github.com/zopolis4"><code>@zopolis4</code></a>][])</li>
</ul>
<h2>1.79.0 (2025-07-24)</h2>
<h3>New features</h3>
<ul>
<li><a
href="https://redirect.github.com/rubocop/rubocop/pull/14348">#14348</a>:
Add new cop <code>Layout/EmptyLinesAfterModuleInclusion</code>. ([<a
href="https://github.com/lovro-bikic"><code>@lovro-bikic</code></a>][])</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/pull/14374">#14374</a>:
Enhance <code>Naming/MethodName</code> cop to detect offenses within
<code>Data</code> members. ([<a
href="https://github.com/viralpraxis"><code>@viralpraxis</code></a>][])</li>
</ul>
<h3>Bug fixes</h3>
<ul>
<li><a
href="https://redirect.github.com/rubocop/rubocop/pull/14373">#14373</a>:
Fix an error for <code>Style/ParallelAssignment</code> when a lambda
with parallel assignment is used on the RHS. ([<a
href="https://github.com/koic"><code>@koic</code></a>][])</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/issues/14370">#14370</a>:
Fix comment duplication bug in <code>Style/AccessorGrouping</code>
separated autocorrect. ([<a
href="https://github.com/r7kamura"><code>@r7kamura</code></a>][])</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/pull/14377">#14377</a>:
Fix a false positive for <code>Lint/UselessAssignment</code> when the
assignment is inside a loop body. ([<a
href="https://github.com/5hun-s"><code>@5hun-s</code></a>][])</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/pull/14355">#14355</a>:
Fix a false negative for <code>Style/RedundantParentheses</code> when
using parentheses around a <code>rescue</code> expression on a one-line.
([<a href="https://github.com/koic"><code>@koic</code></a>][])</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/pull/14354">#14354</a>:
Fix incorrect autocorrect for
<code>Style/AccessModifierDeclarations</code> when using a grouped
access modifier declaration. ([<a
href="https://github.com/girasquid"><code>@girasquid</code></a>][])</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/issues/14367">#14367</a>:
Fix an incorrect autocorrect for <code>Style/SingleLineMethods</code>
when defining a single-line singleton method. ([<a
href="https://github.com/koic"><code>@koic</code></a>][])</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/issues/14344">#14344</a>:
Fix incorrect autocorrect for <code>Style/SingleLineMethods</code> when
a single-line method definition contains a modifier. ([<a
href="https://github.com/koic"><code>@koic</code></a>][])</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/issues/14350">#14350</a>:
Fix <code>Naming/MethodName</code> cop false positives with
<code>define_method</code> and operator names. ([<a
href="https://github.com/viralpraxis"><code>@viralpraxis</code></a>][])</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/issues/14333">#14333</a>:
Fix <code>Naming/PredicateMethod</code> ignoring the implicit
<code>nil</code> from missing <code>else</code> branches. ([<a
href="https://github.com/earlopain"><code>@earlopain</code></a>][])</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/pull/14356">#14356</a>:
Fix <code>Style/ItBlockParameter</code> cop error on <code>always</code>
style and missing block body. ([<a
href="https://github.com/viralpraxis"><code>@viralpraxis</code></a>][])</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/issues/14362">#14362</a>:
Update <code>Lint/RequireRangeParentheses</code> to not register false
positives when range elements span multiple lines. ([<a
href="https://github.com/dvandersluis"><code>@dvandersluis</code></a>][])</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/issues/14309">#14309</a>:
Update <code>Style/SoleNestedConditional</code> to properly correct
assignments within <code>and</code>. ([<a
href="https://github.com/dvandersluis"><code>@dvandersluis</code></a>][])</li>
</ul>
<h3>Changes</h3>
<ul>
<li><a
href="https://redirect.github.com/rubocop/rubocop/pull/14358">#14358</a>:
Add <code>tsort</code> gem to runtime dependency for Ruby 3.5-dev. ([<a
href="https://github.com/koic"><code>@koic</code></a>][])</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/issues/14322">#14322</a>:
Expand the scope of <code>Style/ItAssignment</code> to consider all
local variable and method parameter names. ([<a
href="https://github.com/dvandersluis"><code>@dvandersluis</code></a>][])</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/pull/14378">#14378</a>:
Change <code>Layout/SpaceAroundKeyword</code> to offend for missing
whitespace between <code>return</code> and opening parenthesis. ([<a
href="https://github.com/lovro-bikic"><code>@lovro-bikic</code></a>][])</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/pull/14360">#14360</a>:
Make <code>Layout/SpaceAroundOperators</code> aware of alternative and
as pattern matchings. ([<a
href="https://github.com/koic"><code>@koic</code></a>][])</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/pull/14375">#14375</a>:
Make <code>Lint/RedundantSafeNavigation</code> aware of builtin convert
methods <code>to_s</code>, <code>to_i</code>, <code>to_f</code>,
<code>to_a</code>, and <code>to_h</code>. ([<a
href="https://github.com/koic"><code>@koic</code></a>][])</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/issues/13835">#13835</a>:
Add <code>InferNonNilReceiver</code> config to
<code>Lint/RedundantSafeNavigation</code> to check previous code paths
if the receiver is non-nil. ([<a
href="https://github.com/fatkodima"><code>@fatkodima</code></a>][])</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/pull/14381">#14381</a>:
Offend <code>array1.any? { |elem| array2.member?(elem) }</code> and
<code>array1.none? { |elem| array2.member?(elem) }</code> in
<code>Style/ArrayIntersect</code>. ([<a
href="https://github.com/lovro-bikic"><code>@lovro-bikic</code></a>][])</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/rubocop/rubocop/commit/5ecd375e149e1aa4054711ef1d637f2acbfd92ac"><code>5ecd375</code></a>
Cut 1.79.1</li>
<li><a
href="https://github.com/rubocop/rubocop/commit/0b19d9215392a34991ecbd11de0bde6e27d13cf8"><code>0b19d92</code></a>
Tweak a couple of changelog entries</li>
<li><a
href="https://github.com/rubocop/rubocop/commit/300bc8674d348afbed8fb10c4ea0895ada1453fa"><code>300bc86</code></a>
Update Changelog</li>
<li><a
href="https://github.com/rubocop/rubocop/commit/8e6be288701175d4c4f63f452fe4268e8bc9bc36"><code>8e6be28</code></a>
Add support for or nodes to Lint/LiteralAsCondition</li>
<li><a
href="https://github.com/rubocop/rubocop/commit/6adbb279fba7782fac4ada65611930b07eed127b"><code>6adbb27</code></a>
Merge pull request <a
href="https://redirect.github.com/rubocop/rubocop/issues/14405">#14405</a>
from viralpraxis/fix-naming-method-name-cop-spec-de...</li>
<li><a
href="https://github.com/rubocop/rubocop/commit/968229405da46c16136f14cc8aa011c09f113a6f"><code>9682294</code></a>
Fix <code>Naming/MethodName</code> cop spec descriptions</li>
<li><a
href="https://github.com/rubocop/rubocop/commit/fc0e660eaa2c12513ad2cd8e77dd4f7f5ad52a9e"><code>fc0e660</code></a>
Merge pull request <a
href="https://redirect.github.com/rubocop/rubocop/issues/14403">#14403</a>
from viralpraxis/enhance-naming-method-name-to-hand...</li>
<li><a
href="https://github.com/rubocop/rubocop/commit/19f9c0b4e597a7ae28483874d4cd9380bb2934f2"><code>19f9c0b</code></a>
Enhance <code>Naming/MethodName</code> cop to detect offenses within
<code>alias</code> and `alias_...</li>
<li><a
href="https://github.com/rubocop/rubocop/commit/9d262b14e3f5f6e2c1922670f36909e4d0002704"><code>9d262b1</code></a>
Merge pull request <a
href="https://redirect.github.com/rubocop/rubocop/issues/14400">#14400</a>
from koic/fix_false_positive_for_layout_empty_lines...</li>
<li><a
href="https://github.com/rubocop/rubocop/commit/13c50509aafe9c0a0be9253a4756c6bfb2189575"><code>13c5050</code></a>
[Fix <a
href="https://redirect.github.com/rubocop/rubocop/issues/14399">#14399</a>]
Fix false positives for
<code>Layout/EmptyLinesAfterModuleInclusion</code></li>
<li>Additional commits viewable in <a
href="https://github.com/rubocop/rubocop/compare/v1.78.0...v1.79.1">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>1 file changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
407 | 407 | | |
408 | 408 | | |
409 | 409 | | |
410 | | - | |
| 410 | + | |
411 | 411 | | |
412 | 412 | | |
413 | 413 | | |
| |||
493 | 493 | | |
494 | 494 | | |
495 | 495 | | |
496 | | - | |
| 496 | + | |
497 | 497 | | |
498 | 498 | | |
499 | 499 | | |
| |||
604 | 604 | | |
605 | 605 | | |
606 | 606 | | |
607 | | - | |
| 607 | + | |
608 | 608 | | |
609 | 609 | | |
610 | 610 | | |
| |||
658 | 658 | | |
659 | 659 | | |
660 | 660 | | |
661 | | - | |
| 661 | + | |
662 | 662 | | |
663 | 663 | | |
664 | 664 | | |
665 | 665 | | |
666 | 666 | | |
667 | 667 | | |
668 | 668 | | |
669 | | - | |
| 669 | + | |
670 | 670 | | |
671 | 671 | | |
672 | | - | |
| 672 | + | |
673 | 673 | | |
674 | 674 | | |
675 | 675 | | |
| |||
0 commit comments