Commit a52bda0
authored
Build(deps-dev): Bump rubocop from 1.75.8 to 1.76.0 (#863)
Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.75.8 to
1.76.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.76.0</h2>
<h3>New features</h3>
<ul>
<li><a
href="https://redirect.github.com/rubocop/rubocop/issues/12360">#12360</a>:
Add new <code>Naming/PredicateMethod</code> cop to check that predicate
methods end with <code>?</code> and non-predicate methods do not. (<a
href="https://github.com/dvandersluis"><code>@dvandersluis</code></a>)</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/issues/13121">#13121</a>:
Add new <code>Style/EmptyStringInsideInterpolation</code> cop. (<a
href="https://github.com/zopolis4"><code>@zopolis4</code></a>)</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/pull/14091">#14091</a>:
Add new cop <code>Style/RedundantArrayFlatten</code>. (<a
href="https://github.com/lovro-bikic"><code>@lovro-bikic</code></a>)</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/pull/14184">#14184</a>:
Add new cop <code>Lint/UselessOr</code>. (<a
href="https://github.com/lovro-bikic"><code>@lovro-bikic</code></a>)</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/pull/14221">#14221</a>:
Enhance <code>Gemspec</code> department cops to detect offenses if
specification variable is <code>it</code> or a numbered parameter. (<a
href="https://github.com/viralpraxis"><code>@viralpraxis</code></a>)</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/pull/14166">#14166</a>:
Add new cop <code>Lint/UselessDefaultValueArgument</code>. (<a
href="https://github.com/lovro-bikic"><code>@lovro-bikic</code></a>)</li>
</ul>
<h3>Bug fixes</h3>
<ul>
<li><a
href="https://redirect.github.com/rubocop/rubocop/issues/14228">#14228</a>:
Fix a false positive for <code>Style/RedundantParentheses</code> when
using a one-line <code>rescue</code> expression as a method argument.
(<a href="https://github.com/koic"><code>@koic</code></a>)</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/pull/14224">#14224</a>:
Fix false negatives for <code>Style/RedundantParentheses</code> when
using one-line pattern matching. (<a
href="https://github.com/koic"><code>@koic</code></a>)</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/issues/14205">#14205</a>:
False negatives in <code>Style/SafeNavigation</code> when a ternary
expression is used in a method argument. (<a
href="https://github.com/steiley"><code>@steiley</code></a>)</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/pull/14226">#14226</a>:
Fix <code>Lint/LiteralAsCondition</code> autocorrect when branches of a
condition have comments. (<a
href="https://github.com/zopolis4"><code>@zopolis4</code></a>)</li>
</ul>
<h3>Changes</h3>
<ul>
<li><a
href="https://redirect.github.com/rubocop/rubocop/pull/14066">#14066</a>:
Add <code>EnforcedStyle: allow_single_line</code> as the default to
<code>Style/ItBlockParameter</code>. (<a
href="https://github.com/koic"><code>@koic</code></a>)</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/pull/13788">#13788</a>:
Disable <code>Lint/ShadowingOuterLocalVariable</code> by default. (<a
href="https://github.com/nekketsuuu"><code>@nekketsuuu</code></a>)</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/pull/14215">#14215</a>:
Recognize inequation (<code>!=</code>) in
<code>Lint/IdentityComparison</code>. (<a
href="https://github.com/lovro-bikic"><code>@lovro-bikic</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.76.0 (2025-06-04)</h2>
<h3>New features</h3>
<ul>
<li><a
href="https://redirect.github.com/rubocop/rubocop/issues/12360">#12360</a>:
Add new <code>Naming/PredicateMethod</code> cop to check that predicate
methods end with <code>?</code> and non-predicate methods do not. ([<a
href="https://github.com/dvandersluis"><code>@dvandersluis</code></a>][])</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/issues/13121">#13121</a>:
Add new <code>Style/EmptyStringInsideInterpolation</code> cop. ([<a
href="https://github.com/zopolis4"><code>@zopolis4</code></a>][])</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/pull/14091">#14091</a>:
Add new cop <code>Style/RedundantArrayFlatten</code>. ([<a
href="https://github.com/lovro-bikic"><code>@lovro-bikic</code></a>][])</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/pull/14184">#14184</a>:
Add new cop <code>Lint/UselessOr</code>. ([<a
href="https://github.com/lovro-bikic"><code>@lovro-bikic</code></a>][])</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/pull/14221">#14221</a>:
Enhance <code>Gemspec</code> department cops to detect offenses if
specification variable is <code>it</code> or a numbered parameter. ([<a
href="https://github.com/viralpraxis"><code>@viralpraxis</code></a>][])</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/pull/14166">#14166</a>:
Add new cop <code>Lint/UselessDefaultValueArgument</code>. ([<a
href="https://github.com/lovro-bikic"><code>@lovro-bikic</code></a>][])</li>
</ul>
<h3>Bug fixes</h3>
<ul>
<li><a
href="https://redirect.github.com/rubocop/rubocop/issues/14228">#14228</a>:
Fix a false positive for <code>Style/RedundantParentheses</code> when
using a one-line <code>rescue</code> expression as a method argument.
([<a href="https://github.com/koic"><code>@koic</code></a>][])</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/pull/14224">#14224</a>:
Fix false negatives for <code>Style/RedundantParentheses</code> when
using one-line pattern matching. ([<a
href="https://github.com/koic"><code>@koic</code></a>][])</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/issues/14205">#14205</a>:
False negatives in <code>Style/SafeNavigation</code> when a ternary
expression is used in a method argument. ([<a
href="https://github.com/steiley"><code>@steiley</code></a>][])</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/pull/14226">#14226</a>:
Fix <code>Lint/LiteralAsCondition</code> autocorrect when branches of a
condition have comments. ([<a
href="https://github.com/zopolis4"><code>@zopolis4</code></a>][])</li>
</ul>
<h3>Changes</h3>
<ul>
<li><a
href="https://redirect.github.com/rubocop/rubocop/pull/14066">#14066</a>:
Add <code>EnforcedStyle: allow_single_line</code> as the default to
<code>Style/ItBlockParameter</code>. ([<a
href="https://github.com/koic"><code>@koic</code></a>][])</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/pull/13788">#13788</a>:
Disable <code>Lint/ShadowingOuterLocalVariable</code> by default. ([<a
href="https://github.com/nekketsuuu"><code>@nekketsuuu</code></a>][])</li>
<li><a
href="https://redirect.github.com/rubocop/rubocop/pull/14215">#14215</a>:
Recognize inequation (<code>!=</code>) in
<code>Lint/IdentityComparison</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/190a64de3358db1c9e9c86eae32665916c37535c"><code>190a64d</code></a>
Cut 1.76</li>
<li><a
href="https://github.com/rubocop/rubocop/commit/f62809d8dd5268f737f1d640a12f26f56b3d0490"><code>f62809d</code></a>
Update Changelog</li>
<li><a
href="https://github.com/rubocop/rubocop/commit/329b5808b6adaae077d44ca91cd49317528866ed"><code>329b580</code></a>
Use <code>RuboCop::AST::Node#any_match_pattern_type?</code> method</li>
<li><a
href="https://github.com/rubocop/rubocop/commit/9368339baaa3a5942a9f25d1652efcca4b336351"><code>9368339</code></a>
[Fix <a
href="https://redirect.github.com/rubocop/rubocop/issues/14228">#14228</a>]
Fix false positive for <code>Style/RedundantParentheses</code></li>
<li><a
href="https://github.com/rubocop/rubocop/commit/16efaa9ca545b0c9332a64778949868d1846972e"><code>16efaa9</code></a>
Merge pull request <a
href="https://redirect.github.com/rubocop/rubocop/issues/14226">#14226</a>
from Zopolis4/standee</li>
<li><a
href="https://github.com/rubocop/rubocop/commit/af29d5ce6d3e991dbaa4655bbd9a15be1154fb4f"><code>af29d5c</code></a>
Fix <code>Lint/LiteralAsCondition</code> autocorrect when branches of a
condition have c...</li>
<li><a
href="https://github.com/rubocop/rubocop/commit/173db55ef67100cfa28477b511ea2d5699e75169"><code>173db55</code></a>
Add new cop Lint/UselessOr</li>
<li><a
href="https://github.com/rubocop/rubocop/commit/c977def8693fc7da1d168f3260e461cf51cd984c"><code>c977def</code></a>
Merge pull request <a
href="https://redirect.github.com/rubocop/rubocop/issues/14225">#14225</a>
from viralpraxis/fix-style-empty-string-inside-inte...</li>
<li><a
href="https://github.com/rubocop/rubocop/commit/fac13c5d00d6d9965e5d7a3ec9f04a7046fc6824"><code>fac13c5</code></a>
Fix <code>Style/EmptyStringInsideInterpolation</code> cop error on
non-string literal</li>
<li><a
href="https://github.com/rubocop/rubocop/commit/25a7eefb2a8f81e1a7b44a6546c1fd958385f983"><code>25a7eef</code></a>
Fix false negatives for <code>Style/RedundantParentheses</code></li>
<li>Additional commits viewable in <a
href="https://github.com/rubocop/rubocop/compare/v1.75.8...v1.76.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>1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
637 | 637 | | |
638 | 638 | | |
639 | 639 | | |
640 | | - | |
| 640 | + | |
641 | 641 | | |
642 | 642 | | |
643 | 643 | | |
644 | 644 | | |
645 | 645 | | |
646 | 646 | | |
647 | 647 | | |
648 | | - | |
| 648 | + | |
649 | 649 | | |
650 | 650 | | |
651 | | - | |
| 651 | + | |
652 | 652 | | |
653 | 653 | | |
654 | 654 | | |
| |||
0 commit comments