Commit f4f0b9a
Merge #388
388: Update rubocop requirement from ~> 1.37.1 to ~> 1.38.0 r=brunoocasali 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.38</h2>
<h3>New features</h3>
<ul>
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11110">#11110</a>: Add new <code>Style/RedundantEach</code> cop. (<a href="https://github.com/koic"><code>`@koic</code></a>)</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/10255">#10255</a>: Add simple autocorrect for <code>Style/GuardClause</code>. (<a href="https://github.com/FnControlOption"><code>`@FnControlOption</code></a>)</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11126">#11126</a>: Have <code>Lint/RedundantRequireStatement</code> mark <code>set</code> as a redundant require in Ruby 3.2+. (<a href="https://github.com/drenmi"><code>`@drenmi</code></a>)</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11001">#11001</a>: Add option to raise cop errors <code>--raise-cop-error</code>. (<a href="https://github.com/wildmaples"><code>`@wildmaples</code></a>)</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/10987">#10987</a>: Opt-in cop compatibility in redundant directives. (<a href="https://github.com/tdeo"><code>`@tdeo</code></a>)</li>`
</ul>
<h3>Bug fixes</h3>
<ul>
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11125">#11125</a>: Fix an error for <code>Layout/SpaceInsideHashLiteralBraces</code> when using method argument that both key and value are hash literals. (<a href="https://github.com/koic"><code>`@koic</code></a>)</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11132">#11132</a>: Fix clobbering error on <code>Lint/EmptyConditionalBody</code>. (<a href="https://github.com/r7kamura"><code>`@r7kamura</code></a>)</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11117">#11117</a>: Fix a false positive for <code>Style/BlockDelimiters</code> when specifying <code>EnforcedStyle: semantic</code> and using a single line block with {} followed by a safe navigation method call. (<a href="https://github.com/koic"><code>`@koic</code></a>)</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11120">#11120</a>: Fix an incorrect autocorrect for <code>Lint/RedundantRequireStatement</code> when using redundant <code>require</code> with modifier form. (<a href="https://github.com/koic"><code>`@koic</code></a>)</li>`
</ul>
<h3>Changes</h3>
<ul>
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11131">#11131</a>: Check newline in empty reference bracket on <code>Layout/SpaceInsideReferenceBrackets</code>. (<a href="https://github.com/r7kamura"><code>`@r7kamura</code></a>)</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11045">#11045</a>: Update the <code>Style/ModuleFunction</code> documentation to suggest <code>class << self</code> as an alternative. (<a href="https://github.com/rdeckard"><code>`@rdeckard</code></a>)</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11006">#11006</a>: Allow multiple <code>elsif</code> for <code>Style/IfWithBooleanLiteralBranches</code>. (<a href="https://github.com/koic"><code>`@koic</code></a>)</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11113">#11113</a>: Report the count of files in the Worst and the Offense Count formatters. (<a href="https://github.com/hosamaly"><code>`@hosamaly</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.38.0 (2022-11-01)</h2>
<h3>New features</h3>
<ul>
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11110">#11110</a>: Add new <code>Style/RedundantEach</code> cop. ([<a href="https://github.com/koic"><code>`@koic</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/10255">#10255</a>: Add simple autocorrect for <code>Style/GuardClause</code>. ([<a href="https://github.com/FnControlOption"><code>`@FnControlOption</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11126">#11126</a>: Have <code>Lint/RedundantRequireStatement</code> mark <code>set</code> as a redundant require in Ruby 3.2+. ([<a href="https://github.com/drenmi"><code>`@drenmi</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11001">#11001</a>: Add option to raise cop errors <code>--raise-cop-error</code>. ([<a href="https://github.com/wildmaples"><code>`@wildmaples</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/10987">#10987</a>: Opt-in cop compatibility in redundant directives. ([<a href="https://github.com/tdeo"><code>`@tdeo</code></a>][])</li>`
</ul>
<h3>Bug fixes</h3>
<ul>
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11125">#11125</a>: Fix an error for <code>Layout/SpaceInsideHashLiteralBraces</code> when using method argument that both key and value are hash literals. ([<a href="https://github.com/koic"><code>`@koic</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11132">#11132</a>: Fix clobbering error on <code>Lint/EmptyConditionalBody</code>. ([<a href="https://github.com/r7kamura"><code>`@r7kamura</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11117">#11117</a>: Fix a false positive for <code>Style/BlockDelimiters</code> when specifying <code>EnforcedStyle: semantic</code> and using a single line block with {} followed by a safe navigation method call. ([<a href="https://github.com/koic"><code>`@koic</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11120">#11120</a>: Fix an incorrect autocorrect for <code>Lint/RedundantRequireStatement</code> when using redundant <code>require</code> with modifier form. ([<a href="https://github.com/koic"><code>`@koic</code></a>][])</li>`
</ul>
<h3>Changes</h3>
<ul>
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11131">#11131</a>: Check newline in empty reference bracket on <code>Layout/SpaceInsideReferenceBrackets</code>. ([<a href="https://github.com/r7kamura"><code>`@r7kamura</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11045">#11045</a>: Update the <code>Style/ModuleFunction</code> documentation to suggest <code>class << self</code> as an alternative. ([<a href="https://github.com/rdeckard"><code>`@rdeckard</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11006">#11006</a>: Allow multiple <code>elsif</code> for <code>Style/IfWithBooleanLiteralBranches</code>. ([<a href="https://github.com/koic"><code>`@koic</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11113">#11113</a>: Report the count of files in the Worst and the Offense Count formatters. ([<a href="https://github.com/hosamaly"><code>`@hosamaly</code></a>][])</li>`
</ul>
<h2>1.37.1 (2022-10-24)</h2>
<h3>Bug fixes</h3>
<ul>
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11102">#11102</a>: Fix an error for <code>Style/AccessModifierDeclarations</code> when using access modifier in a block. ([<a href="https://github.com/koic"><code>`@koic</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11107">#11107</a>: Fix a false positive for <code>Style/OperatorMethodCall</code> when a constant receiver uses an operator method. ([<a href="https://github.com/koic"><code>`@koic</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11104">#11104</a>: Fix an error for <code>Style/CollectionCompact</code> when using <code>reject</code> method and receiver is a variable. ([<a href="https://github.com/koic"><code>`@koic</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11114">#11114</a>: Fix an error for <code>Style/OperatorMethodCall</code> when using <code>obj.!</code>. ([<a href="https://github.com/koic"><code>`@koic</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11088">#11088</a>: Fix an error when specifying <code>SuggestExtensions: true</code>. ([<a href="https://github.com/koic"><code>`@koic</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11089">#11089</a>: Fix an error for <code>Style/RedundantStringEscape</code> when using character literals (e.g. <code>?a</code>). ([<a href="https://github.com/ydah"><code>`@ydah</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11098">#11098</a>: Fix false positive for <code>Style/RedundantStringEscape</code>. ([<a href="https://github.com/tdeo"><code>`@tdeo</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11095">#11095</a>: Fix an error for <code>Style/RedundantStringEscape</code> cop when using <code>?\n</code> string character literal. ([<a href="https://github.com/koic"><code>`@koic</code></a>][])</li>`
</ul>
<h2>1.37.0 (2022-10-20)</h2>
<h3>New features</h3>
<ul>
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11043">#11043</a>: Add new <code>Lint/DuplicateMagicComment</code> cop. ([<a href="https://github.com/koic"><code>`@koic</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/10409">#10409</a>: Add <code>--no-exclude-limit</code> CLI option. ([<a href="https://github.com/r7kamura"><code>`@r7kamura</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/10986">#10986</a>: Add autocorrect for <code>Style/StaticClass</code>. ([<a href="https://github.com/FnControlOption"><code>`@FnControlOption</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11018">#11018</a>: Add <code>AllowedMethods</code> and <code>AllowedPatterns</code> for <code>Lint/NestedMethodDefinition</code>. ([<a href="https://github.com/koic"><code>`@koic</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11055">#11055</a>: Implement <code>Lint/DuplicateMethods</code> for object singleton class. ([<a href="https://github.com/tdeo"><code>`@tdeo</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/10997">#10997</a>: Make <code>rubocop</code> command aware of <code>--server</code> option from .rubocop and RUBOCOP_OPTS. ([<a href="https://github.com/koic"><code>`@koic</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11079">#11079</a>: Add new <code>Style/OperatorMethodCall</code> cop. ([<a href="https://github.com/koic"><code>`@koic</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/10439">#10439</a>: Add new <code>Style/RedundantStringEscape</code> cop. ([<a href="https://github.com/owst"><code>`@owst</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/52a56f0be2332d61718597261a15860201d1fc3c"><code>52a56f0</code></a> Cut 1.38</li>
<li><a href="https://github.com/rubocop/rubocop/commit/c87ed48b57bd2610b751d586ed142ffaa878280e"><code>c87ed48</code></a> Update Changelog</li>
<li><a href="https://github.com/rubocop/rubocop/commit/d9844822d25124741b2757ba872f252e4dd59aed"><code>d984482</code></a> Set whitespace-line-column to 100 in .dir-locals.el</li>
<li><a href="https://github.com/rubocop/rubocop/commit/e42355292d601eef4ee752c6c192420bb1d9c285"><code>e423552</code></a> Fix the CI build</li>
<li><a href="https://github.com/rubocop/rubocop/commit/360f0439ffc9d20c1b1fca26d353fd5ad5bfff33"><code>360f043</code></a> Improve Style/IfWithBooleanLiteralBranches's documentation</li>
<li><a href="https://github.com/rubocop/rubocop/commit/6e910eb0387225df2ae919d421df5a821ae7c72a"><code>6e910eb</code></a> [Fix <a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11006">#11006</a>] Allow multiple <code>elsif</code> for <code>Style/IfWithBooleanLiteralBranches</code></li>
<li><a href="https://github.com/rubocop/rubocop/commit/c4b2bb18b6f17e2748d9f71fc82b4ad3bf3bc8ab"><code>c4b2bb1</code></a> Use broken vertical bar as adoc table separator</li>
<li><a href="https://github.com/rubocop/rubocop/commit/41a8249b3595cc8656b823d50b2abe38206fd09a"><code>41a8249</code></a> Tweak wording</li>
<li><a href="https://github.com/rubocop/rubocop/commit/72f8c698ad17f235762ecd265cbb5beb126b2661"><code>72f8c69</code></a> Update the <code>Style/ModuleFunction</code> documentation to suggest <code>class << self</code> as...</li>
<li><a href="https://github.com/rubocop/rubocop/commit/06cacaeca3e75221001ca3bdd14a25a36f3f5b44"><code>06cacae</code></a> [Fix <a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11120">#11120</a>] Fix an incorrect autocorrect for <code>Lint/RedundantRequireStatement</code></li>
<li>Additional commits viewable in <a href="https://github.com/rubocop/rubocop/compare/v1.37.1...v1.38.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` 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>1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
0 commit comments