Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump rubocop from 1.56.4 to 1.57.0 (#116)
Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.56.4 to 1.57.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 1.57</h2> <h3>New features</h3> <ul> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/12227">#12227</a>: Add new <code>Style/SingleLineDoEndBlock</code> cop. (<a href="https://github.com/koic"><code>@koic</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/12246">#12246</a>: Make <code>Lint/RedundantSafeNavigation</code> aware of constant receiver. (<a href="https://github.com/koic"><code>@koic</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12257">#12257</a>: Make <code>Style/RedundantDoubleSplatHashBraces</code> aware of <code>merge</code> methods. (<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/12244">#12244</a>: Fix a false negative for <code>Lint/Debugger</code> when using debugger method inside block. (<a href="https://github.com/koic"><code>@koic</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12231">#12231</a>: Fix a false negative for <code>Metrics/ModuleLength</code> when defining a singleton class in a module. (<a href="https://github.com/koic"><code>@koic</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12249">#12249</a>: Fix a false positive <code>Style/IdenticalConditionalBranches</code> when <code>if</code>..<code>else</code> with identical leading lines and assign to condition value. (<a href="https://github.com/koic"><code>@koic</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/12253">#12253</a>: Fix <code>Lint/LiteralInInterpolation</code> to accept an empty string literal interpolated in words literal. (<a href="https://github.com/knu"><code>@knu</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12198">#12198</a>: Fix an error for flip-flop with beginless or endless ranges. (<a href="https://github.com/koic"><code>@koic</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12259">#12259</a>: Fix an error for <code>Lint/MixedCaseRange</code> when using nested character class in regexp. (<a href="https://github.com/koic"><code>@koic</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12237">#12237</a>: Fix an error for <code>Style/NestedTernaryOperator</code> when a ternary operator has a nested ternary operator within an <code>if</code>. (<a href="https://github.com/koic"><code>@koic</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/12228">#12228</a>: Fix false negatives for <code>Style/MultilineBlockChain</code> when using multiline block chain with safe navigation operator. (<a href="https://github.com/koic"><code>@koic</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/12247">#12247</a>: Fix false negatives for <code>Style/RedundantParentheses</code> when using logical or comparison expressions with redundant parentheses. (<a href="https://github.com/koic"><code>@koic</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12226">#12226</a>: Fix false positives for <code>Layout/MultilineMethodCallIndentation</code> when aligning methods in multiline block chain. (<a href="https://github.com/koic"><code>@koic</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12076">#12076</a>: Fixed an issue where the top-level cache folder was named differently during two consecutive rubocop runs. (<a href="https://github.com/K-S-A"><code>@K-S-A</code></a>)</li> </ul> <h3>Changes</h3> <ul> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/12235">#12235</a>: Enable auto parallel inspection when config file is specified. (<a href="https://github.com/aboutNisblee"><code>@aboutNisblee</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/12234">#12234</a>: Enhance <code>Style/FormatString</code>'s autocorrection when using known conversion methods whose return value is not an array. (<a href="https://github.com/koic"><code>@koic</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12128">#12128</a>: Make <code>Style/GuardClause</code> aware of <code>define_method</code>. (<a href="https://github.com/koic"><code>@koic</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/12126">#12126</a>: Make <code>Style/RedundantFilterChain</code> aware of <code>select.present?</code> when <code>ActiveSupportExtensionsEnabled</code> config is <code>true</code>. (<a href="https://github.com/koic"><code>@koic</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/12250">#12250</a>: Mark <code>Lint/RedundantRequireStatement</code> as unsafe autocorrect. (<a href="https://github.com/koic"><code>@koic</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12097">#12097</a>: Mark unsafe autocorrect for <code>Style/ClassEqualityComparison</code>. (<a href="https://github.com/koic"><code>@koic</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12210">#12210</a>: Mark <code>Style/RedundantFilterChain</code> as unsafe autocorrect. (<a href="https://github.com/koic"><code>@koic</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.57.0 (2023-10-11)</h2> <h3>New features</h3> <ul> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/12227">#12227</a>: Add new <code>Style/SingleLineDoEndBlock</code> cop. ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/12246">#12246</a>: Make <code>Lint/RedundantSafeNavigation</code> aware of constant receiver. ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12257">#12257</a>: Make <code>Style/RedundantDoubleSplatHashBraces</code> aware of <code>merge</code> methods. ([<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/12244">#12244</a>: Fix a false negative for <code>Lint/Debugger</code> when using debugger method inside block. ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12231">#12231</a>: Fix a false negative for <code>Metrics/ModuleLength</code> when defining a singleton class in a module. ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12249">#12249</a>: Fix a false positive <code>Style/IdenticalConditionalBranches</code> when <code>if</code>..<code>else</code> with identical leading lines and assign to condition value. ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/12253">#12253</a>: Fix <code>Lint/LiteralInInterpolation</code> to accept an empty string literal interpolated in words literal. ([<a href="https://github.com/knu"><code>@knu</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12198">#12198</a>: Fix an error for flip-flop with beginless or endless ranges. ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12259">#12259</a>: Fix an error for <code>Lint/MixedCaseRange</code> when using nested character class in regexp. ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12237">#12237</a>: Fix an error for <code>Style/NestedTernaryOperator</code> when a ternary operator has a nested ternary operator within an <code>if</code>. ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/12228">#12228</a>: Fix false negatives for <code>Style/MultilineBlockChain</code> when using multiline block chain with safe navigation operator. ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/12247">#12247</a>: Fix false negatives for <code>Style/RedundantParentheses</code> when using logical or comparison expressions with redundant parentheses. ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12226">#12226</a>: Fix false positives for <code>Layout/MultilineMethodCallIndentation</code> when aligning methods in multiline block chain. ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12076">#12076</a>: Fixed an issue where the top-level cache folder was named differently during two consecutive rubocop runs. ([<a href="https://github.com/K-S-A"><code>@K-S-A</code></a>][])</li> </ul> <h3>Changes</h3> <ul> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/12235">#12235</a>: Enable auto parallel inspection when config file is specified. ([<a href="https://github.com/aboutNisblee"><code>@aboutNisblee</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/12234">#12234</a>: Enhance <code>Style/FormatString</code>'s autocorrection when using known conversion methods whose return value is not an array. ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12128">#12128</a>: Make <code>Style/GuardClause</code> aware of <code>define_method</code>. ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/12126">#12126</a>: Make <code>Style/RedundantFilterChain</code> aware of <code>select.present?</code> when <code>ActiveSupportExtensionsEnabled</code> config is <code>true</code>. ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/12250">#12250</a>: Mark <code>Lint/RedundantRequireStatement</code> as unsafe autocorrect. ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12097">#12097</a>: Mark unsafe autocorrect for <code>Style/ClassEqualityComparison</code>. ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12210">#12210</a>: Mark <code>Style/RedundantFilterChain</code> as unsafe autocorrect. ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/rubocop/rubocop/commit/bfdb5ff4fec74c0dd154268a8e4b97dba7a79aed"><code>bfdb5ff</code></a> Cut 1.57</li> <li><a href="https://github.com/rubocop/rubocop/commit/872d7137fd26977273146a70df8a903dedfe93bd"><code>872d713</code></a> Update Changelog</li> <li><a href="https://github.com/rubocop/rubocop/commit/402542229238227ca9e1655efd210f3f8f0a1e1b"><code>4025422</code></a> [Fix <a href="https://redirect.github.com/rubocop/rubocop/issues/12076">#12076</a>] Explicitly require fileutils in RuboCop::Server::Cache</li> <li><a href="https://github.com/rubocop/rubocop/commit/b4e2bdd0718e00bc0346717091d94f22b33e5510"><code>b4e2bdd</code></a> [Fix <a href="https://redirect.github.com/rubocop/rubocop/issues/12259">#12259</a>] Fix an error for <code>Lint/MixedCaseRange</code></li> <li><a href="https://github.com/rubocop/rubocop/commit/986d047b8a6d4163329cdd4925726eae7885b6e6"><code>986d047</code></a> Fix an error for <code>Style/RedundantDoubleSplatHashBraces</code></li> <li><a href="https://github.com/rubocop/rubocop/commit/81ef51ea121989cdf756c6e1c016fc2b5414bf4b"><code>81ef51e</code></a> [Fix <a href="https://redirect.github.com/rubocop/rubocop/issues/12257">#12257</a>] Make <code>Style/RedundantDoubleSplatHashBraces</code> aware of <code>merge</code></li> <li><a href="https://github.com/rubocop/rubocop/commit/86c0e8daf5f30c8745e79ff1fff12c2a8b950376"><code>86c0e8d</code></a> [Fix <a href="https://redirect.github.com/rubocop/rubocop/issues/12249">#12249</a>] Fix a false positive <code>Style/IdenticalConditionalBranches</code></li> <li><a href="https://github.com/rubocop/rubocop/commit/6a100e60868c4543517e701a1728dd7ddae73384"><code>6a100e6</code></a> Merge pull request <a href="https://redirect.github.com/rubocop/rubocop/issues/12255">#12255</a> from ydah/followup-12176</li> <li><a href="https://github.com/rubocop/rubocop/commit/fb3415206c8fcc8c1a856a8529b5e94069782115"><code>fb34152</code></a> Remove redundant true/false returns</li> <li><a href="https://github.com/rubocop/rubocop/commit/7b05f2a8fb4f62e26697bac8ba12f0369645ead8"><code>7b05f2a</code></a> Merge pull request <a href="https://redirect.github.com/rubocop/rubocop/issues/12254">#12254</a> from joesiewert/empty-block-text</li> <li>Additional commits viewable in <a href="https://github.com/rubocop/rubocop/compare/v1.56.4...v1.57.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=rubocop&package-manager=bundler&previous-version=1.56.4&new-version=1.57.0)](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