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.52.1 to 1.56.3 (#103)
Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.52.1 to 1.56.3. <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.56.3</h2> <h3>Bug fixes</h3> <ul> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12151">#12151</a>: Make <code>Layout/EmptyLineAfterGuardClause</code> allow <code>:nocov:</code> directive after guard clause. (<a href="https://github.com/koic"><code>@koic</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12195">#12195</a>: Fix a false negative for <code>Layout/SpaceAfterNot</code> when a newline is present after <code>!</code>. (<a href="https://github.com/ymap"><code>@ymap</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12192">#12192</a>: Fix a false positive for <code>Layout/RedundantLineBreak</code> when using quoted symbols with a single newline. (<a href="https://github.com/ymap"><code>@ymap</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12190">#12190</a>: Fix a false positive for <code>Layout/SpaceAroundOperators</code> when aligning operators vertically. (<a href="https://github.com/koic"><code>@koic</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12171">#12171</a>: Fix a false positive for <code>Style/ArrayIntersect</code> when using block argument for <code>Enumerable#any?</code>. (<a href="https://github.com/koic"><code>@koic</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12172">#12172</a>: Fix a false positive for <code>Style/EmptyCaseCondition</code> when using <code>return</code>, <code>break</code>, <code>next</code> or method call before empty case condition. (<a href="https://github.com/koic"><code>@koic</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12162">#12162</a>: Fix an error for <code>Bundler/DuplicatedGroup</code> when there's a duplicate set of groups and the <code>group</code> value contains a splat. (<a href="https://github.com/koic"><code>@koic</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12182">#12182</a>: Fix an error for <code>Lint/UselessAssignment</code> when variables are assigned using chained assignment and remain unreferenced. (<a href="https://github.com/koic"><code>@koic</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12181">#12181</a>: Fix an incorrect autocorrect for <code>Lint/UselessAssignment</code> when variables are assigned with sequential assignment using the comma operator and unreferenced. (<a href="https://github.com/koic"><code>@koic</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12187">#12187</a>: Fix an incorrect autocorrect for <code>Style/SoleNestedConditional</code> when comment is in an empty nested <code>if</code> body. (<a href="https://github.com/ymap"><code>@ymap</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/12183">#12183</a>: Fix an incorrect autocorrect for <code>Style/MultilineTernaryOperator</code> when returning a multiline ternary operator expression with safe navigation method call. (<a href="https://github.com/koic"><code>@koic</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12168">#12168</a>: Fix bug in <code>Style/ArgumentsForwarding</code> when there are repeated send nodes. (<a href="https://github.com/owst"><code>@owst</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/12185">#12185</a>: Set target version for <code>Layout/HeredocIndentation</code>. (<a href="https://github.com/tagliala"><code>@tagliala</code></a>)</li> </ul> <h2>RuboCop 1.56.2</h2> <h3>Bug fixes</h3> <ul> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12138">#12138</a>: Fix a false positive for <code>Layout/LineContinuationLeadingSpace</code> when a backslash is part of a multiline string literal. (<a href="https://github.com/ymap"><code>@ymap</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/12155">#12155</a>: Fix false positive for <code>Layout/RedundantLineBreak</code> when using a modified singleton method definition. (<a href="https://github.com/koic"><code>@koic</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12143">#12143</a>: Fix a false positive for <code>Lint/ToEnumArguments</code> when using anonymous keyword arguments forwarding. (<a href="https://github.com/koic"><code>@koic</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/12148">#12148</a>: Fix an incorrect autocorrect for <code>Lint/NonAtomicFileOperation</code> when using <code>FileUtils.remove_dir</code>, <code>FileUtils.remove_entry</code>, or <code>FileUtils.remove_entry_secure</code>. (<a href="https://github.com/koic"><code>@koic</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12141">#12141</a>: Fix false positive for <code>Style/ArgumentsForwarding</code> when method def includes additional kwargs. (<a href="https://github.com/owst"><code>@owst</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12154">#12154</a>: Fix incorrect <code>diagnosticProvider</code> value of LSP. (<a href="https://github.com/koic"><code>@koic</code></a>)</li> </ul> <h2>RuboCop 1.56.1</h2> <h3>Bug fixes</h3> <ul> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/12136">#12136</a>: Fix a false negative for <code>Layout/LeadingCommentSpace</code> when using <code>#+</code> or <code>#-</code> as they are not RDoc comments. (<a href="https://github.com/koic"><code>@koic</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12113">#12113</a>: Fix a false positive for <code>Bundler/DuplicatedGroup</code> when groups are duplicated but <code>source</code>, <code>git</code>, <code>platforms</code>, or <code>path</code> values are different. (<a href="https://github.com/koic"><code>@koic</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12134">#12134</a>: Fix a false positive for <code>Style/MethodCallWithArgsParentheses</code> when parentheses are used in one-line <code>in</code> pattern matching. (<a href="https://github.com/koic"><code>@koic</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12111">#12111</a>: Fix an error for <code>Bundler/DuplicatedGroup</code> group declaration has keyword option. (<a href="https://github.com/koic"><code>@koic</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12109">#12109</a>: Fix an error for <code>Style/ArgumentsForwarding</code> cop when forwarding kwargs/block arg and an additional arg. ([<a href="https://github.com/ydah"><code>@ydah</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12117">#12117</a>: Fix a false positive for <code>Style/ArgumentsForwarding</code> cop when not always forwarding block. (<a href="https://github.com/owst"><code>@owst</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/12115">#12115</a>: Fix an error for <code>Style/Lambda</code> when using numbered parameter with a multiline <code>-></code> call. (<a href="https://github.com/koic"><code>@koic</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12124">#12124</a>: Fix false positives for <code>Style/RedundantParentheses</code> when parentheses in <code>super</code> or <code>yield</code> call with multiline style argument. (<a href="https://github.com/koic"><code>@koic</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/12120">#12120</a>: Fix false positives for <code>Style/SymbolArray</code> when <code>%i</code> array containing unescaped <code>[</code>, <code>]</code>, <code>(</code>, or <code>)</code>. (<a href="https://github.com/koic"><code>@koic</code></a>)</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/12133">#12133</a>: Fix <code>Style/RedundantSelfAssignmentBranch</code> to handle heredocs. ([<a href="https://github.com/r7kamura"><code>@r7kamura</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12105">#12105</a>: Fix target ruby <code>Gem::Requirement</code> matcher and version parsing to support multiple version constraints. ([<a href="https://github.com/ItsEcholot"><code>@ItsEcholot</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.56.3 (2023-09-11)</h2> <h3>Bug fixes</h3> <ul> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12151">#12151</a>: Make <code>Layout/EmptyLineAfterGuardClause</code> allow <code>:nocov:</code> directive after guard clause. ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12195">#12195</a>: Fix a false negative for <code>Layout/SpaceAfterNot</code> when a newline is present after <code>!</code>. ([<a href="https://github.com/ymap"><code>@ymap</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12192">#12192</a>: Fix a false positive for <code>Layout/RedundantLineBreak</code> when using quoted symbols with a single newline. ([<a href="https://github.com/ymap"><code>@ymap</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12190">#12190</a>: Fix a false positive for <code>Layout/SpaceAroundOperators</code> when aligning operators vertically. ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12171">#12171</a>: Fix a false positive for <code>Style/ArrayIntersect</code> when using block argument for <code>Enumerable#any?</code>. ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12172">#12172</a>: Fix a false positive for <code>Style/EmptyCaseCondition</code> when using <code>return</code>, <code>break</code>, <code>next</code> or method call before empty case condition. ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12162">#12162</a>: Fix an error for <code>Bundler/DuplicatedGroup</code> when there's a duplicate set of groups and the <code>group</code> value contains a splat. ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12182">#12182</a>: Fix an error for <code>Lint/UselessAssignment</code> when variables are assigned using chained assignment and remain unreferenced. ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12181">#12181</a>: Fix an incorrect autocorrect for <code>Lint/UselessAssignment</code> when variables are assigned with sequential assignment using the comma operator and unreferenced. ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12187">#12187</a>: Fix an incorrect autocorrect for <code>Style/SoleNestedConditional</code> when comment is in an empty nested <code>if</code> body. ([<a href="https://github.com/ymap"><code>@ymap</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/12183">#12183</a>: Fix an incorrect autocorrect for <code>Style/MultilineTernaryOperator</code> when returning a multiline ternary operator expression with safe navigation method call. ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12168">#12168</a>: Fix bug in <code>Style/ArgumentsForwarding</code> when there are repeated send nodes. ([<a href="https://github.com/owst"><code>@owst</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/12185">#12185</a>: Set target version for <code>Layout/HeredocIndentation</code>. ([<a href="https://github.com/tagliala"><code>@tagliala</code></a>][])</li> </ul> <h2>1.56.2 (2023-08-29)</h2> <h3>Bug fixes</h3> <ul> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12138">#12138</a>: Fix a false positive for <code>Layout/LineContinuationLeadingSpace</code> when a backslash is part of a multiline string literal. ([<a href="https://github.com/ymap"><code>@ymap</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/12155">#12155</a>: Fix false positive for <code>Layout/RedundantLineBreak</code> when using a modified singleton method definition. ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12143">#12143</a>: Fix a false positive for <code>Lint/ToEnumArguments</code> when using anonymous keyword arguments forwarding. ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/12148">#12148</a>: Fix an incorrect autocorrect for <code>Lint/NonAtomicFileOperation</code> when using <code>FileUtils.remove_dir</code>, <code>FileUtils.remove_entry</code>, or <code>FileUtils.remove_entry_secure</code>. ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12141">#12141</a>: Fix false positive for <code>Style/ArgumentsForwarding</code> when method def includes additional kwargs. ([<a href="https://github.com/owst"><code>@owst</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12154">#12154</a>: Fix incorrect <code>diagnosticProvider</code> value of LSP. ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li> </ul> <h2>1.56.1 (2023-08-21)</h2> <h3>Bug fixes</h3> <ul> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/12136">#12136</a>: Fix a false negative for <code>Layout/LeadingCommentSpace</code> when using <code>#+</code> or <code>#-</code> as they are not RDoc comments. ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12113">#12113</a>: Fix a false positive for <code>Bundler/DuplicatedGroup</code> when groups are duplicated but <code>source</code>, <code>git</code>, <code>platforms</code>, or <code>path</code> values are different. ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12134">#12134</a>: Fix a false positive for <code>Style/MethodCallWithArgsParentheses</code> when parentheses are used in one-line <code>in</code> pattern matching. ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12111">#12111</a>: Fix an error for <code>Bundler/DuplicatedGroup</code> group declaration has keyword option. ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12109">#12109</a>: Fix an error for <code>Style/ArgumentsForwarding</code> cop when forwarding kwargs/block arg and an additional arg. ([<a href="https://github.com/ydah"><code>@ydah</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12117">#12117</a>: Fix a false positive for <code>Style/ArgumentsForwarding</code> cop when not always forwarding block. ([<a href="https://github.com/owst"><code>@owst</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/12115">#12115</a>: Fix an error for <code>Style/Lambda</code> when using numbered parameter with a multiline <code>-></code> call. ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12124">#12124</a>: Fix false positives for <code>Style/RedundantParentheses</code> when parentheses in <code>super</code> or <code>yield</code> call with multiline style argument. ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/12120">#12120</a>: Fix false positives for <code>Style/SymbolArray</code> when <code>%i</code> array containing unescaped <code>[</code>, <code>]</code>, <code>(</code>, or <code>)</code>. ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/12133">#12133</a>: Fix <code>Style/RedundantSelfAssignmentBranch</code> to handle heredocs. ([<a href="https://github.com/r7kamura"><code>@r7kamura</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/12105">#12105</a>: Fix target ruby <code>Gem::Requirement</code> matcher and version parsing to support multiple version constraints. ([<a href="https://github.com/ItsEcholot"><code>@ItsEcholot</code></a>][])</li> </ul> <h2>1.56.0 (2023-08-09)</h2> <h3>New features</h3> <ul> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/12074">#12074</a>: Add new <code>Bundler/DuplicatedGroup</code> cop. ([<a href="https://github.com/OwlKing"><code>@OwlKing</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/796fcb34b9b11f632ae7d3bffc6da36e9bd0b781"><code>796fcb3</code></a> Cut 1.56.3</li> <li><a href="https://github.com/rubocop/rubocop/commit/2c10ba8ee3ba2a946e059dafcdfca9dd665f22a9"><code>2c10ba8</code></a> Move a changelog entry</li> <li><a href="https://github.com/rubocop/rubocop/commit/fa8bc616c3b086fe68e6dd651f59b5541ac01158"><code>fa8bc61</code></a> Update Changelog</li> <li><a href="https://github.com/rubocop/rubocop/commit/52d0b72e04bbce9e206b5583009334c0c6e7db43"><code>52d0b72</code></a> Try avoiding project_root leak to fix flaky error</li> <li><a href="https://github.com/rubocop/rubocop/commit/3d427bb323b54d15d9e380e6762ac924f0695d3b"><code>3d427bb</code></a> Fix isolated test files should not break isolation.</li> <li><a href="https://github.com/rubocop/rubocop/commit/8abcf7ea8a919e213fae44129b75326c61f40617"><code>8abcf7e</code></a> Fix shadowing of FileFinder stop_dir in isolated tests.</li> <li><a href="https://github.com/rubocop/rubocop/commit/77a6b227096e88a639e518cf3e11e3d603d6accc"><code>77a6b22</code></a> [Fix <a href="https://redirect.github.com/rubocop/rubocop/issues/12151">#12151</a>] Make <code>Layout/EmptyLineAfterGuardClause</code> allow <code>:nocov:</code> directive</li> <li><a href="https://github.com/rubocop/rubocop/commit/b1c67e9dbdc2984bd5087b76c0b4467b718e5af9"><code>b1c67e9</code></a> Constantize fixed arrays of <code>Style/SymbolArray</code></li> <li><a href="https://github.com/rubocop/rubocop/commit/aab9391e5a037e41e2223e18e709588cc272aab1"><code>aab9391</code></a> Use RuboCop RSpec 2.24</li> <li><a href="https://github.com/rubocop/rubocop/commit/4ba4104507d3f765d2c9ad1d52abee397ba226c0"><code>4ba4104</code></a> [Fix <a href="https://redirect.github.com/rubocop/rubocop/issues/12195">#12195</a>] Fix a false negative for <code>Layout/SpaceAfterNot</code></li> <li>Additional commits viewable in <a href="https://github.com/rubocop/rubocop/compare/v1.52.1...v1.56.3">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.52.1&new-version=1.56.3)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 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> > **Note** > Automatic rebases have been disabled on this pull request as it has been open for over 30 days. Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
- Loading branch information