Skip to content

Commit

Permalink
Merge #525
Browse files Browse the repository at this point in the history
525: Update rubocop requirement from ~> 1.50.1 to ~> 1.61.0 r=ellnix a=dependabot[bot]

Updates the requirements on [rubocop](https://github.com/rubocop/rubocop) to permit the latest version.
<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 1.61</h2>
<h3>New features</h3>
<ul>
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/12682">#12682</a>: Add <code>--editor-mode</code> CLI option. (<a href="https://github.com/koic"><code>`@​koic</code></a>)</li>`
<li><a href="https://redirect.github.com/rubocop/rubocop/pull/12657">#12657</a>: Support <code>AutoCorrect: contextual</code> option for LSP. (<a href="https://github.com/koic"><code>`@​koic</code></a>)</li>`
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/12273">#12273</a>: Make <code>OffenseCountFormatter</code> display autocorrection information. (<a href="https://github.com/koic"><code>`@​koic</code></a>)</li>`
<li><a href="https://redirect.github.com/rubocop/rubocop/pull/12679">#12679</a>: Publish <code>RuboCop::LSP.enable</code> API to enable LSP mode. (<a href="https://github.com/koic"><code>`@​koic</code></a>)</li>`
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/12699">#12699</a>: Support searching for <code>.rubocop.yml</code> and <code>rubocop/config.yml</code> in compliance with dot-config. (<a href="https://github.com/koic"><code>`@​koic</code></a>)</li>`
</ul>
<h3>Bug fixes</h3>
<ul>
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/12720">#12720</a>: Fix a false positive for <code>Style/ArgumentsForwarding</code> when using block arg forwarding to within block with Ruby 3.3.0. (<a href="https://github.com/koic"><code>`@​koic</code></a>)</li>`
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/12714">#12714</a>: Fix an error for <code>Gemspec/RequiredRubyVersion</code> when <code>required_ruby_version</code> is specified with <code>Gem::Requirement.new</code> and is higher than <code>TargetRubyVersion</code>. (<a href="https://github.com/koic"><code>`@​koic</code></a>)</li>`
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/12690">#12690</a>: Fix an error for <code>Style/CaseLikeIf</code> when using <code>==</code> with literal and using ternary operator. (<a href="https://github.com/koic"><code>`@​koic</code></a>)</li>`
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/12668">#12668</a>: Fix an incorrect autocorrect for <code>Lint/EmptyConditionalBody</code> when missing <code>if</code> body with conditional <code>else</code> body. (<a href="https://github.com/koic"><code>`@​koic</code></a>)</li>`
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/12683">#12683</a>: Fix an incorrect autocorrect for <code>Style/MapCompactWithConditionalBlock</code> when using guard clause with <code>next</code> implicitly nil. (<a href="https://github.com/koic"><code>`@​koic</code></a>)</li>`
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/12693">#12693</a>: Fix an incorrect autocorrect for <code>Style/ObjectThen</code> when using <code>yield_self</code> without receiver. (<a href="https://github.com/koic"><code>`@​koic</code></a>)</li>`
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/12646">#12646</a>: Fix <code>--auto-gen-config</code> bug for <code>Layout/SpaceBeforeBlockBraces</code>. (<a href="https://github.com/jonas054"><code>`@​jonas054</code></a>)</li>`
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/12717">#12717</a>: Fix regexp for inline disable comments in <code>Style/CommentedKeyword</code>. (<a href="https://github.com/jonas054"><code>`@​jonas054</code></a>)</li>`
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/12695">#12695</a>: Fix bug in <code>Include</code> from inherited file in a parent directory. (<a href="https://github.com/jonas054"><code>`@​jonas054</code></a>)</li>`
<li><a href="https://redirect.github.com/rubocop/rubocop/pull/12656">#12656</a>: Fix an error for <code>Layout/RedundantLineBreak</code> when using index access call chained on multiline hash literal. (<a href="https://github.com/koic"><code>`@​koic</code></a>)</li>`
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/12691">#12691</a>: Fix an error for <code>Style/MultilineTernaryOperator</code> when nesting multiline ternary operators. (<a href="https://github.com/koic"><code>`@​koic</code></a>)</li>`
<li><a href="https://redirect.github.com/rubocop/rubocop/pull/12707">#12707</a>: Fix false negative for <code>Style/RedundantAssignment</code> when using pattern matching. (<a href="https://github.com/koic"><code>`@​koic</code></a>)</li>`
<li><a href="https://redirect.github.com/rubocop/rubocop/pull/12674">#12674</a>: Fix false negatives for <code>Style/RedundantReturn</code> when using pattern matching. (<a href="https://github.com/koic"><code>`@​koic</code></a>)</li>`
<li><a href="https://redirect.github.com/rubocop/rubocop/pull/12673">#12673</a>: Fix false negatives for <code>Lint/RedundantSafeNavigation</code> when using safe navigation operator for literal receiver. (<a href="https://github.com/koic"><code>`@​koic</code></a>)</li>`
<li><a href="https://redirect.github.com/rubocop/rubocop/pull/12719">#12719</a>: Fix false negatives for <code>Style/ArgumentsForwarding</code> when using forwardable block arguments with Ruby 3.2+. (<a href="https://github.com/koic"><code>`@​koic</code></a>)</li>`
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/12687">#12687</a>: Fix a false positive for <code>Lint/Void</code> when <code>each</code> block with conditional expressions that has multiple statements. (<a href="https://github.com/koic"><code>`@​koic</code></a>)</li>`
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/12649">#12649</a>: Fix false positives for <code>Style/InverseMethods</code> when using relational comparison operator with safe navigation. (<a href="https://github.com/koic"><code>`@​koic</code></a>)</li>`
<li><a href="https://redirect.github.com/rubocop/rubocop/pull/12711">#12711</a>: Handle implicit receivers in <code>Style/InvertibleUnlessCondition</code>. (<a href="https://github.com/sambostock"><code>`@​sambostock</code></a>)</li>`
<li><a href="https://redirect.github.com/rubocop/rubocop/pull/12648">#12648</a>: Fix numblock regressions in <code>omit_parentheses</code> <code>Style/MethodCallWithArgsParentheses</code>. (<a href="https://github.com/gsamokovarov"><code>`@​gsamokovarov</code></a>)</li>`
</ul>
<h3>Changes</h3>
<ul>
<li><a href="https://redirect.github.com/rubocop/rubocop/pull/12641">#12641</a>: Make error message clearer when the namespace is incorrect. (<a href="https://github.com/maruth-stripe"><code>`@​maruth-stripe</code></a>)</li>`
<li><a href="https://redirect.github.com/rubocop/rubocop/pull/12637">#12637</a>: Mark <code>Style/RaiseArgs</code> as unsafe. (<a href="https://github.com/r7kamura"><code>`@​r7kamura</code></a>)</li>`
<li><a href="https://redirect.github.com/rubocop/rubocop/pull/12645">#12645</a>: Change source order for target ruby to check gemspec after RuboCop configuration. (<a href="https://github.com/jenshenny"><code>`@​jenshenny</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.61.0 (2024-02-29)</h2>
<h3>New features</h3>
<ul>
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/12682">#12682</a>: Add <code>--editor-mode</code> CLI option. ([<a href="https://github.com/koic"><code>`@​koic</code></a>][])</li>`
<li><a href="https://redirect.github.com/rubocop/rubocop/pull/12657">#12657</a>: Support <code>AutoCorrect: contextual</code> option for LSP. ([<a href="https://github.com/koic"><code>`@​koic</code></a>][])</li>`
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/12273">#12273</a>: Make <code>OffenseCountFormatter</code> display autocorrection information. ([<a href="https://github.com/koic"><code>`@​koic</code></a>][])</li>`
<li><a href="https://redirect.github.com/rubocop/rubocop/pull/12679">#12679</a>: Publish <code>RuboCop::LSP.enable</code> API to enable LSP mode. ([<a href="https://github.com/koic"><code>`@​koic</code></a>][])</li>`
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/12699">#12699</a>: Support searching for <code>.rubocop.yml</code> and <code>rubocop/config.yml</code> in compliance with dot-config. ([<a href="https://github.com/koic"><code>`@​koic</code></a>][])</li>`
</ul>
<h3>Bug fixes</h3>
<ul>
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/12720">#12720</a>: Fix a false positive for <code>Style/ArgumentsForwarding</code> when using block arg forwarding to within block with Ruby 3.3.0. ([<a href="https://github.com/koic"><code>`@​koic</code></a>][])</li>`
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/12714">#12714</a>: Fix an error for <code>Gemspec/RequiredRubyVersion</code> when <code>required_ruby_version</code> is specified with <code>Gem::Requirement.new</code> and is higher than <code>TargetRubyVersion</code>. ([<a href="https://github.com/koic"><code>`@​koic</code></a>][])</li>`
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/12690">#12690</a>: Fix an error for <code>Style/CaseLikeIf</code> when using <code>==</code> with literal and using ternary operator. ([<a href="https://github.com/koic"><code>`@​koic</code></a>][])</li>`
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/12668">#12668</a>: Fix an incorrect autocorrect for <code>Lint/EmptyConditionalBody</code> when missing <code>if</code> body with conditional <code>else</code> body. ([<a href="https://github.com/koic"><code>`@​koic</code></a>][])</li>`
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/12683">#12683</a>: Fix an incorrect autocorrect for <code>Style/MapCompactWithConditionalBlock</code> when using guard clause with <code>next</code> implicitly nil. ([<a href="https://github.com/koic"><code>`@​koic</code></a>][])</li>`
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/12693">#12693</a>: Fix an incorrect autocorrect for <code>Style/ObjectThen</code> when using <code>yield_self</code> without receiver. ([<a href="https://github.com/koic"><code>`@​koic</code></a>][])</li>`
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/12646">#12646</a>: Fix <code>--auto-gen-config</code> bug for <code>Layout/SpaceBeforeBlockBraces</code>. ([<a href="https://github.com/jonas054"><code>`@​jonas054</code></a>][])</li>`
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/12717">#12717</a>: Fix regexp for inline disable comments in <code>Style/CommentedKeyword</code>. ([<a href="https://github.com/jonas054"><code>`@​jonas054</code></a>][])</li>`
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/12695">#12695</a>: Fix bug in <code>Include</code> from inherited file in a parent directory. ([<a href="https://github.com/jonas054"><code>`@​jonas054</code></a>][])</li>`
<li><a href="https://redirect.github.com/rubocop/rubocop/pull/12656">#12656</a>: Fix an error for <code>Layout/RedundantLineBreak</code> when using index access call chained on multiline hash literal. ([<a href="https://github.com/koic"><code>`@​koic</code></a>][])</li>`
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/12691">#12691</a>: Fix an error for <code>Style/MultilineTernaryOperator</code> when nesting multiline ternary operators. ([<a href="https://github.com/koic"><code>`@​koic</code></a>][])</li>`
<li><a href="https://redirect.github.com/rubocop/rubocop/pull/12707">#12707</a>: Fix false negative for <code>Style/RedundantAssignment</code> when using pattern matching. ([<a href="https://github.com/koic"><code>`@​koic</code></a>][])</li>`
<li><a href="https://redirect.github.com/rubocop/rubocop/pull/12674">#12674</a>: Fix false negatives for <code>Style/RedundantReturn</code> when using pattern matching. ([<a href="https://github.com/koic"><code>`@​koic</code></a>][])</li>`
<li><a href="https://redirect.github.com/rubocop/rubocop/pull/12673">#12673</a>: Fix false negatives for <code>Lint/RedundantSafeNavigation</code> when using safe navigation operator for literal receiver. ([<a href="https://github.com/koic"><code>`@​koic</code></a>][])</li>`
<li><a href="https://redirect.github.com/rubocop/rubocop/pull/12719">#12719</a>: Fix false negatives for <code>Style/ArgumentsForwarding</code> when using forwardable block arguments with Ruby 3.2+. ([<a href="https://github.com/koic"><code>`@​koic</code></a>][])</li>`
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/12687">#12687</a>: Fix a false positive for <code>Lint/Void</code> when <code>each</code> block with conditional expressions that has multiple statements. ([<a href="https://github.com/koic"><code>`@​koic</code></a>][])</li>`
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/12649">#12649</a>: Fix false positives for <code>Style/InverseMethods</code> when using relational comparison operator with safe navigation. ([<a href="https://github.com/koic"><code>`@​koic</code></a>][])</li>`
<li><a href="https://redirect.github.com/rubocop/rubocop/pull/12711">#12711</a>: Handle implicit receivers in <code>Style/InvertibleUnlessCondition</code>. ([<a href="https://github.com/sambostock"><code>`@​sambostock</code></a>][])</li>`
<li><a href="https://redirect.github.com/rubocop/rubocop/pull/12648">#12648</a>: Fix numblock regressions in <code>omit_parentheses</code> <code>Style/MethodCallWithArgsParentheses</code>. ([<a href="https://github.com/gsamokovarov"><code>`@​gsamokovarov</code></a>][])</li>`
</ul>
<h3>Changes</h3>
<ul>
<li><a href="https://redirect.github.com/rubocop/rubocop/pull/12641">#12641</a>: Make error message clearer when the namespace is incorrect. ([<a href="https://github.com/maruth-stripe"><code>`@​maruth-stripe</code></a>][])</li>`
<li><a href="https://redirect.github.com/rubocop/rubocop/pull/12637">#12637</a>: Mark <code>Style/RaiseArgs</code> as unsafe. ([<a href="https://github.com/r7kamura"><code>`@​r7kamura</code></a>][])</li>`
<li><a href="https://redirect.github.com/rubocop/rubocop/pull/12645">#12645</a>: Change source order for target ruby to check gemspec after RuboCop configuration. ([<a href="https://github.com/jenshenny"><code>`@​jenshenny</code></a>][])</li>`
</ul>
<h2>1.60.2 (2024-01-24)</h2>
<h3>Bug fixes</h3>
<ul>
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/12627">#12627</a>: Fix a false positive for <code>Layout/RedundantLineBreak</code> when using index access call chained on multiple lines with backslash. ([<a href="https://github.com/koic"><code>`@​koic</code></a>][])</li>`
<li><a href="https://redirect.github.com/rubocop/rubocop/pull/12626">#12626</a>: Fix a false positive for <code>Style/ArgumentsForwarding</code> when naming a block argument <code>&amp;</code>. ([<a href="https://github.com/koic"><code>`@​koic</code></a>][])</li>`
<li><a href="https://redirect.github.com/rubocop/rubocop/pull/12635">#12635</a>: Fix a false positive for <code>Style/HashEachMethods</code> when both arguments are unused. ([<a href="https://github.com/earlopain"><code>`@​earlopain</code></a>][])</li>`
<li><a href="https://redirect.github.com/rubocop/rubocop/pull/12636">#12636</a>: Fix an error for <code>Style/HashEachMethods</code> when a block with both parameters has no body. ([<a href="https://github.com/earlopain"><code>`@​earlopain</code></a>][])</li>`
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/12638">#12638</a>: Fix an <code>Errno::ENOENT</code> error when using server mode. ([<a href="https://github.com/koic"><code>`@​koic</code></a>][])</li>`
<li><a href="https://redirect.github.com/rubocop/rubocop/pull/12628">#12628</a>: Fix a false positive for <code>Style/ArgumentsForwarding</code> when using block arg forwarding with positional arguments forwarding to within block. ([<a href="https://github.com/koic"><code>`@​koic</code></a>][])</li>`
<li><a href="https://redirect.github.com/rubocop/rubocop/pull/12642">#12642</a>: Fix false positives for <code>Style/HashEachMethods</code> when using array converter method. ([<a href="https://github.com/koic"><code>`@​koic</code></a>][])</li>`
<li><a href="https://redirect.github.com/rubocop/rubocop/issues/12632">#12632</a>: Fix an infinite loop error when <code>EnforcedStyle: explicit</code> of <code>Naming/BlockForwarding</code> with <code>Style/ArgumentsForwarding</code>. ([<a href="https://github.com/koic"><code>`@​koic</code></a>][])</li>`
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/rubocop/rubocop/commit/45ba7790b3c6fc37c0b83693513c4dadd619d1ed"><code>45ba779</code></a> Cut 1.61</li>
<li><a href="https://github.com/rubocop/rubocop/commit/0882ca91f7a73ca0eca34759908730fdf477eaa0"><code>0882ca9</code></a> Update Changelog</li>
<li><a href="https://github.com/rubocop/rubocop/commit/87b3b4db9f1a315f30316c2b45547b531d1e5ab8"><code>87b3b4d</code></a> Rename variable in InvertibleUnlessCondition</li>
<li><a href="https://github.com/rubocop/rubocop/commit/f15152468c627794a839c7c12ae37766199d664f"><code>f151524</code></a> Add InvertibleUnlessCondition implicit receiver example</li>
<li><a href="https://github.com/rubocop/rubocop/commit/8acce2851bbd59d44a18becf2bc919cd26b49db2"><code>8acce28</code></a> Tweak specs for <code>Security/YAMLLoad</code></li>
<li><a href="https://github.com/rubocop/rubocop/commit/b4cc30544e8349054b27ffbb0108aa0bfe5c4747"><code>b4cc305</code></a> Merge pull request <a href="https://redirect.github.com/rubocop/rubocop/issues/12723">#12723</a> from koic/add_specs_for_style_arguments_forwarding</li>
<li><a href="https://github.com/rubocop/rubocop/commit/bac7a0ba6cf536460ee3d6efe69a1f4eb057ba0e"><code>bac7a0b</code></a> Add specs for <code>Style/ArgumentsForwarding</code></li>
<li><a href="https://github.com/rubocop/rubocop/commit/5da1905ce6b7896f661a36e15d7a2acbe88ea627"><code>5da1905</code></a> Handle implicit receivers in <code>Style/InvertibleUnlessCondition</code></li>
<li><a href="https://github.com/rubocop/rubocop/commit/18004e94181c3bcf8467622eed72b4d50171d975"><code>18004e9</code></a> [Fix <a href="https://redirect.github.com/rubocop/rubocop/issues/12717">#12717</a>] Re-use definition of directive comments from Style/CommentedKeyword</li>
<li><a href="https://github.com/rubocop/rubocop/commit/8aae48b6ae4423e42af35318ce9cd64dbf3f0ddf"><code>8aae48b</code></a> Fix a false positive for <code>Style/ArgumentsForwarding</code></li>
<li>Additional commits viewable in <a href="https://github.com/rubocop/rubocop/compare/v1.50.1...v1.61.0">compare view</a></li>
</ul>
</details>
<br />


You can trigger a rebase of this PR 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>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
meili-bors[bot] and dependabot[bot] authored Mar 1, 2024
2 parents 65a34c9 + c0bda9e commit 0f2b0dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ group :development, :test do
end

group :development do
gem 'rubocop', '~> 1.50.1', require: false
gem 'rubocop', '~> 1.61.0', require: false
end

0 comments on commit 0f2b0dd

Please sign in to comment.