Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): bump rubocop from 1.71.1 to 1.73.1 in /packages/ruby (#1187
) Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.71.1 to 1.73.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.73.1</h2> <h3>Bug fixes</h3> <ul> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/13920">#13920</a>: Fix an error for <code>Lint/MixedCaseRange</code> when <code>/[[ ]]/</code> is used. (<a href="https://github.com/koic"><code>@koic</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/13912">#13912</a>: Fix wrong autocorrect for <code>Lint/EmptyConditionalBody</code> when assigning to a variable with only a single branch. (<a href="https://github.com/earlopain"><code>@earlopain</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/13913">#13913</a>: Fix false positives for <code>Style/RedundantCondition</code> when using when true is used as the true branch and the condition is not a predicate method. (<a href="https://github.com/koic"><code>@koic</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/13909">#13909</a>: Fix false positive with <code>Layout/ClosingParenthesisIndentation</code> when first parameter is a hash. (<a href="https://github.com/tejasbubane"><code>@tejasbubane</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/13915">#13915</a>: Fix writing generics type of rbs-inline annotation for nested class in <code>Style/CommentedKeyword</code>. (<a href="https://github.com/dak2"><code>@dak2</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/13916">#13916</a>: Fix <code>Lint/LiteralAsCondition</code> acting on the right hand side of && nodes. (<a href="https://github.com/zopolis4"><code>@zopolis4</code></a>)</li> </ul> <h2>RuboCop 1.73</h2> <h3>New features</h3> <ul> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/11024">#11024</a>: Add <code>require_always</code> option to <code>Style/EndlessMethod</code>. (<a href="https://github.com/koic"><code>@koic</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/11024">#11024</a>: Add <code>require_single_line</code> option to <code>Style/EndlessMethod</code>. ([<a href="https://github.com/jtannas"><code>@jtannas</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/9935">#9935</a>: Introduce <code>EnforcedStyleForMultiline</code> "diff_comma". ([<a href="https://github.com/flavorjones"><code>@flavorjones</code></a>][])</li> </ul> <h3>Bug fixes</h3> <ul> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/13867">#13867</a>: Fix an error for plugins when not running RuboCop through Bundler. (<a href="https://github.com/earlopain"><code>@earlopain</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/13902">#13902</a>: Fix false negative for <code>Style/RedundantSelfAssignment</code> when the method receives a block. ([<a href="https://github.com/vlad-pisanov"><code>@vlad-pisanov</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/13826">#13826</a>: Fix false positives for regex cops when <code>Lint/MixedCaseRange</code> is enabled. (<a href="https://github.com/earlopain"><code>@earlopain</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/13818">#13818</a>: Fix false positives for <code>Lint/Void</code> when using operator method call without argument. (<a href="https://github.com/koic"><code>@koic</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/13896">#13896</a>: Fix a false positive for <code>Style/TrivialAccessors</code> with <code>instance_eval</code> and numblocks. (<a href="https://github.com/earlopain"><code>@earlopain</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/13910">#13910</a>: Fix false positives for <code>Style/EndlessMethod</code> when using setter method definitions. (<a href="https://github.com/koic"><code>@koic</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/13889">#13889</a>: Fix autocorrection for <code>Layout/LineLength</code> with interpolated strings when not on the first line. ([<a href="https://github.com/dvandersluis"><code>@dvandersluis</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/13900">#13900</a>: Fix infinite loop between <code>Layout/EmptyLinesAroundAccessModifier</code> and <code>Layout/EmptyLinesAroundBlockBody</code> with <code>EnforcedStyle: no_empty_lines</code>. ([<a href="https://github.com/dvandersluis"><code>@dvandersluis</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12692">#12692</a>: Fix <code>Style/AccessorGrouping</code> with constants. (<a href="https://github.com/tejasbubane"><code>@tejasbubane</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/13882">#13882</a>: Fix <code>Style/RedundantFormat</code> for annotated template strings with missing hash keys. ([<a href="https://github.com/dvandersluis"><code>@dvandersluis</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/13880">#13880</a>: Fix <code>Style/RedundantFormat</code> when given double-splatted arguments. ([<a href="https://github.com/dvandersluis"><code>@dvandersluis</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/13907">#13907</a>: Don't offer autocorrect for <code>Style/StringConcatenation</code> when numblocks are used. (<a href="https://github.com/earlopain"><code>@earlopain</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/13876">#13876</a>: Don't consider <code>require 'pp'</code> to be redundant for <code>Lint/RedundantRequireStatement</code>. (<a href="https://github.com/earlopain"><code>@earlopain</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/13885">#13885</a>: Update <code>Style/HashExcept</code> and <code>Style/HashSlice</code> to not register an offense if selecting over the hash value. ([<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/issues/12948">#12948</a>: Add <code>ForbiddenNames</code> configuration to <code>Naming/VariableName</code> to specify names that are forbidden. ([<a href="https://github.com/dvandersluis"><code>@dvandersluis</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/13117">#13117</a>: Add partial autocorrect support to <code>Lint/LiteralAsCondition</code> cop to check for redundant conditions. (<a href="https://github.com/zopolis4"><code>@zopolis4</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/13892">#13892</a>: Allow merging of configured arrays and non-arrays. ([<a href="https://github.com/sambostock"><code>@sambostock</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/13833">#13833</a>: Add <code>Reference</code> to common params. ([<a href="https://github.com/sambostock"><code>@sambostock</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/13890">#13890</a>: Update <code>Lint/RedundantTypeConversion</code> to not register an offense when given a constructor with <code>exception: false</code>. ([<a href="https://github.com/dvandersluis"><code>@dvandersluis</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/13729">#13729</a>: Update <code>Style/RedundantCondition</code> cop to detect conditional expressions where the true branch is <code>true</code> and suggest replacing them with a logical OR. ([<a href="https://github.com/datpmt"><code>@datpmt</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.73.1 (2025-02-27)</h2> <h3>Bug fixes</h3> <ul> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/13920">#13920</a>: Fix an error for <code>Lint/MixedCaseRange</code> when <code>/[[ ]]/</code> is used. ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/13912">#13912</a>: Fix wrong autocorrect for <code>Lint/EmptyConditionalBody</code> when assigning to a variable with only a single branch. ([<a href="https://github.com/earlopain"><code>@earlopain</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/13913">#13913</a>: Fix false positives for <code>Style/RedundantCondition</code> when using when true is used as the true branch and the condition is not a predicate method. ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/13909">#13909</a>: Fix false positive with <code>Layout/ClosingParenthesisIndentation</code> when first parameter is a hash. ([<a href="https://github.com/tejasbubane"><code>@tejasbubane</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/13915">#13915</a>: Fix writing generics type of rbs-inline annotation for nested class in <code>Style/CommentedKeyword</code>. ([<a href="https://github.com/dak2"><code>@dak2</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/13916">#13916</a>: Fix <code>Lint/LiteralAsCondition</code> acting on the right hand side of && nodes. ([<a href="https://github.com/zopolis4"><code>@zopolis4</code></a>][])</li> </ul> <h2>1.73.0 (2025-02-26)</h2> <h3>New features</h3> <ul> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/11024">#11024</a>: Add <code>require_always</code> option to <code>Style/EndlessMethod</code>. ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/11024">#11024</a>: Add <code>require_single_line</code> option to <code>Style/EndlessMethod</code>. ([<a href="https://github.com/jtannas"><code>@jtannas</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/9935">#9935</a>: Introduce EnforcedStyleForMultiline "diff_comma". ([<a href="https://github.com/flavorjones"><code>@flavorjones</code></a>][])</li> </ul> <h3>Bug fixes</h3> <ul> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/13867">#13867</a>: Fix an error for plugins when not running RuboCop through Bundler. ([<a href="https://github.com/earlopain"><code>@earlopain</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/13902">#13902</a>: Fix false negative for <code>Style/RedundantSelfAssignment</code> when the method receives a block. ([<a href="https://github.com/vlad-pisanov"><code>@vlad-pisanov</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/13826">#13826</a>: Fix false positives for regex cops when <code>Lint/MixedCaseRange</code> is enabled. ([<a href="https://github.com/earlopain"><code>@earlopain</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/13818">#13818</a>: Fix false positives for <code>Lint/Void</code> when using operator method call without argument. ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/13896">#13896</a>: Fix a false positive for <code>Style/TrivialAccessors</code> with <code>instance_eval</code> and numblocks. ([<a href="https://github.com/earlopain"><code>@earlopain</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/13910">#13910</a>: Fix false positives for <code>Style/EndlessMethod</code> when using setter method definitions. ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/13889">#13889</a>: Fix autocorrection for <code>Layout/LineLength</code> with interpolated strings when not on the first line. ([<a href="https://github.com/dvandersluis"><code>@dvandersluis</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/13900">#13900</a>: Fix infinite loop between <code>Layout/EmptyLinesAroundAccessModifier</code> and <code>Layout/EmptyLinesAroundBlockBody</code> with <code>EnforcedStyle: no_empty_lines</code>. ([<a href="https://github.com/dvandersluis"><code>@dvandersluis</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12692">#12692</a>: Fix <code>Style/AccessorGrouping</code> with constants. ([<a href="https://github.com/tejasbubane"><code>@tejasbubane</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/13882">#13882</a>: Fix <code>Style/RedundantFormat</code> for annotated template strings with missing hash keys. ([<a href="https://github.com/dvandersluis"><code>@dvandersluis</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/13880">#13880</a>: Fix <code>Style/RedundantFormat</code> when given double-splatted arguments. ([<a href="https://github.com/dvandersluis"><code>@dvandersluis</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/13907">#13907</a>: Don't offer autocorrect for <code>Style/StringConcatenation</code> when numblocks are used. ([<a href="https://github.com/earlopain"><code>@earlopain</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/13876">#13876</a>: Don't consider <code>require 'pp'</code> to be redundant for <code>Lint/RedundantRequireStatement</code>. ([<a href="https://github.com/earlopain"><code>@earlopain</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/13885">#13885</a>: Update <code>Style/HashExcept</code> and <code>Style/HashSlice</code> to not register an offense if selecting over the hash value. ([<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/issues/12948">#12948</a>: Add <code>ForbiddenNames</code> configuration to <code>Naming/VariableName</code> to specify names that are forbidden. ([<a href="https://github.com/dvandersluis"><code>@dvandersluis</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/13117">#13117</a>: Add partial autocorrect support to <code>Lint/LiteralAsCondition</code> cop to check for redundant conditions. ([<a href="https://github.com/zopolis4"><code>@zopolis4</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/13892">#13892</a>: Allow merging of configured arrays and non-arrays. ([<a href="https://github.com/sambostock"><code>@sambostock</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/13833">#13833</a>: Add <code>Reference</code> to common params. ([<a href="https://github.com/sambostock"><code>@sambostock</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/13890">#13890</a>: Update <code>Lint/RedundantTypeConversion</code> to not register an offense when given a constructor with <code>exception: false</code>. ([<a href="https://github.com/dvandersluis"><code>@dvandersluis</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/13729">#13729</a>: Update <code>Style/RedundantCondition</code> cop to detect conditional expressions where the true branch is <code>true</code> and suggest replacing them with a logical OR. ([<a href="https://github.com/datpmt"><code>@datpmt</code></a>][])</li> </ul> <h2>1.72.2 (2025-02-17)</h2> <h3>Bug fixes</h3> <ul> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/13853">#13853</a>: Fix exclusion of relative paths in plugin's <code>AllCops: Exclude</code> as expected. ([<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/75737eea72a70383317ec522c13034b9de8b2842"><code>75737ee</code></a> Cut 1.73.1</li> <li><a href="https://github.com/rubocop/rubocop/commit/9909e5ed9f9d5d4a5131abcbaeafdb4efbb65eb9"><code>9909e5e</code></a> Update Changelog</li> <li><a href="https://github.com/rubocop/rubocop/commit/ec2508892eb732ec1dba13f6d4d10c45763abf3d"><code>ec25088</code></a> [Fix <a href="https://redirect.github.com/rubocop/rubocop/issues/13916">#13916</a>] Stop Lint/LiteralAsCondition from acting on the rhs of && statem...</li> <li><a href="https://github.com/rubocop/rubocop/commit/1ec4ca566e3c32a383e0c237d9387a6c7821569a"><code>1ec4ca5</code></a> [Fix <a href="https://redirect.github.com/rubocop/rubocop/issues/13920">#13920</a>] Fix an error for <code>Lint/MixedCaseRange</code></li> <li><a href="https://github.com/rubocop/rubocop/commit/a15904c16cb6bdd221a29d57e4e54e56b6805cf6"><code>a15904c</code></a> Add default labels to our issue templates</li> <li><a href="https://github.com/rubocop/rubocop/commit/53e5d198fa69abd08f9221067634755d17c8769c"><code>53e5d19</code></a> [Fix <a href="https://redirect.github.com/rubocop/rubocop/issues/13913">#13913</a>] Fix false positives for <code>Style/RedundantCondition</code></li> <li><a href="https://github.com/rubocop/rubocop/commit/bdcad3b76e13c3f16b9e0d4a96e0f5c9bcd25cd3"><code>bdcad3b</code></a> Merge pull request <a href="https://redirect.github.com/rubocop/rubocop/issues/13915">#13915</a> from dak2/rbs-inline/generics-type-in-commented-key...</li> <li><a href="https://github.com/rubocop/rubocop/commit/0e334241d791ee3696745a3b3cb6e82c75433bda"><code>0e33424</code></a> Fix writing generics type of rbs-inline annotation for nested class in `Style...</li> <li><a href="https://github.com/rubocop/rubocop/commit/883cd56ef6b5aa1bc482161b35a83ba129af2f42"><code>883cd56</code></a> Merge pull request <a href="https://redirect.github.com/rubocop/rubocop/issues/13914">#13914</a> from tejasbubane/fix-13909</li> <li><a href="https://github.com/rubocop/rubocop/commit/6fa9c371b86a41d66fadeffd11cb3cd6480c02ca"><code>6fa9c37</code></a> [Fix <a href="https://redirect.github.com/rubocop/rubocop/issues/13909">#13909</a>] Fix false positive with <code>Layout/ClosingParenthesisIndentation</code> w...</li> <li>Additional commits viewable in <a href="https://github.com/rubocop/rubocop/compare/v1.71.1...v1.73.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> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
- Loading branch information