Commit 0abd81b
Merge #396
396: Update rubocop requirement from ~> 1.38.0 to ~> 1.39.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.39</h2>
<h3>New features</h3>
<ul>
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11091">#11091</a>: Add autocorrect for <code>Layout/LineContinuationLeadingSpace</code>. (<a href="https://github.com/FnControlOption"><code>`@FnControlOption</code></a>)</li>`
</ul>
<h3>Bug fixes</h3>
<ul>
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11150">#11150</a>: Improve <code>Style/RedundantRegexpEscape</code> to catch unnecessarily escaped hyphens within a character class. (<a href="https://github.com/si-lens"><code>`@si-lens</code></a>)</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11168">#11168</a>: Fix an incorrect autocorrect for <code>Style/ClassEqualityComparison</code> when using instance variable comparison in module. (<a href="https://github.com/koic"><code>`@koic</code></a>)</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11176">#11176</a>: Fix a false positive cases for <code>Lint/DuplicateMethods</code> when using duplicate nested method. (<a href="https://github.com/koic"><code>`@koic</code></a>)</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11164">#11164</a>: Suppress "RuboCop server starting..." message with <code>--server --format json</code>. (<a href="https://github.com/koic"><code>`@koic</code></a>)</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11156">#11156</a>: Fix <code>Style/OperatorMethodCall</code> autocorrection when operators are chained. (<a href="https://github.com/gsamokovarov"><code>`@gsamokovarov</code></a>)</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11139">#11139</a>: Fix a false negative for <code>Style/HashEachMethods</code> when using each with a symbol proc argument. (<a href="https://github.com/ydah"><code>`@ydah</code></a>)</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11161">#11161</a>: Fix a false positive for <code>Style/HashAsLastArrayItem</code> when using double splat operator. (<a href="https://github.com/koic"><code>`@koic</code></a>)</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11151">#11151</a>: Fix a false positive for <code>Lint/SuppressedException</code>. (<a href="https://github.com/akihikodaki"><code>`@akihikodaki</code></a>)</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11123">#11123</a>: Fix autocorrection bug for <code>Style/StringLiterals</code> when using multiple escape characters. (<a href="https://github.com/si-lens"><code>`@si-lens</code></a>)</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11165">#11165</a>: Fix a false positive for <code>Style/RedundantEach</code> when any method is used between methods containing <code>each</code> in the method name. (<a href="https://github.com/koic"><code>`@koic</code></a>)</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11177">#11177</a>: Fix a false positive for <code>Style/ObjectThen</code> cop with TargetRubyVersion < 2.6. (<a href="https://github.com/epaew"><code>`@epaew</code></a>)</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11173">#11173</a>: Fix an incorrect autocorrect for <code>Style/CollectionCompact</code> when using <code>reject</code> with block pass arg and no parentheses. (<a href="https://github.com/koic"><code>`@koic</code></a>)</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11137">#11137</a>: Fix a false positive for <code>Style/RedundantEach</code> when using a symbol proc argument. (<a href="https://github.com/ydah"><code>`@ydah</code></a>)</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11142">#11142</a>: Fix <code>Style/RedundantEach</code> for non-chained <code>each_</code> calls. (<a href="https://github.com/fatkodima"><code>`@fatkodima</code></a>)</li>`
</ul>
<h3>Changes</h3>
<ul>
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11130">#11130</a>: Check blank percent literal by <code>Layout/SpaceInsidePercentLiteralDelimiters</code>. (<a href="https://github.com/r7kamura"><code>`@r7kamura</code></a>)</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11163">#11163</a>: Mark <code>Style/HashExcept</code> as unsafe. (<a href="https://github.com/r7kamura"><code>`@r7kamura</code></a>)</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11171">#11171</a>: Support inline visibility definition on checking visibility. (<a href="https://github.com/r7kamura"><code>`@r7kamura</code></a>)</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11158">#11158</a>: Add <code>if</code> to allowed names list for MethodParameterName. (<a href="https://github.com/okuramasafumi"><code>`@okuramasafumi</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.39.0 (2022-11-14)</h2>
<h3>New features</h3>
<ul>
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11091">#11091</a>: Add autocorrect for <code>Layout/LineContinuationLeadingSpace</code>. ([<a href="https://github.com/FnControlOption"><code>`@FnControlOption</code></a>][])</li>`
</ul>
<h3>Bug fixes</h3>
<ul>
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11150">#11150</a>: Improve <code>Style/RedundantRegexpEscape</code> to catch unnecessarily escaped hyphens within a character class. ([<a href="https://github.com/si-lens"><code>`@si-lens</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11168">#11168</a>: Fix an incorrect autocorrect for <code>Style/ClassEqualityComparison</code> when using instance variable comparison in module. ([<a href="https://github.com/koic"><code>`@koic</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11176">#11176</a>: Fix a false positive cases for <code>Lint/DuplicateMethods</code> when using duplicate nested method. ([<a href="https://github.com/koic"><code>`@koic</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11164">#11164</a>: Suppress "RuboCop server starting..." message with <code>--server --format json</code>. ([<a href="https://github.com/koic"><code>`@koic</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11156">#11156</a>: Fix <code>Style/OperatorMethodCall</code> autocorrection when operators are chained. ([<a href="https://github.com/gsamokovarov"><code>`@gsamokovarov</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11139">#11139</a>: Fix a false negative for <code>Style/HashEachMethods</code> when using each with a symbol proc argument. ([<a href="https://github.com/ydah"><code>`@ydah</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11161">#11161</a>: Fix a false positive for <code>Style/HashAsLastArrayItem</code> when using double splat operator. ([<a href="https://github.com/koic"><code>`@koic</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11151">#11151</a>: Fix a false positive for <code>Lint/SuppressedException</code>. ([<a href="https://github.com/akihikodaki"><code>`@akihikodaki</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11123">#11123</a>: Fix autocorrection bug for <code>Style/StringLiterals</code> when using multiple escape characters. ([<a href="https://github.com/si-lens"><code>`@si-lens</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11165">#11165</a>: Fix a false positive for <code>Style/RedundantEach</code> when any method is used between methods containing <code>each</code> in the method name. ([<a href="https://github.com/koic"><code>`@koic</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11177">#11177</a>: Fix a false positive for <code>Style/ObjectThen</code> cop with TargetRubyVersion < 2.6. ([<a href="https://github.com/epaew"><code>`@epaew</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11173">#11173</a>: Fix an incorrect autocorrect for <code>Style/CollectionCompact</code> when using <code>reject</code> with block pass arg and no parentheses. ([<a href="https://github.com/koic"><code>`@koic</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11137">#11137</a>: Fix a false positive for <code>Style/RedundantEach</code> when using a symbol proc argument. ([<a href="https://github.com/ydah"><code>`@ydah</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11142">#11142</a>: Fix <code>Style/RedundantEach</code> for non-chained <code>each_</code> calls. ([<a href="https://github.com/fatkodima"><code>`@fatkodima</code></a>][])</li>`
</ul>
<h3>Changes</h3>
<ul>
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11130">#11130</a>: Check blank percent literal by <code>Layout/SpaceInsidePercentLiteralDelimiters</code>. ([<a href="https://github.com/r7kamura"><code>`@r7kamura</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11163">#11163</a>: Mark <code>Style/HashExcept</code> as unsafe. ([<a href="https://github.com/r7kamura"><code>`@r7kamura</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11171">#11171</a>: Support inline visibility definition on checking visibility. ([<a href="https://github.com/r7kamura"><code>`@r7kamura</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11158">#11158</a>: Add <code>if</code> to allowed names list for MethodParameterName. ([<a href="https://github.com/okuramasafumi"><code>`@okuramasafumi</code></a>][])</li>`
</ul>
<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>`
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/rubocop/rubocop/commit/6bdf42b432dcdc2ee8fedf4647b322af6d96108e"><code>6bdf42b</code></a> Cut 1.39</li>
<li><a href="https://github.com/rubocop/rubocop/commit/a0ecf1b7ff7c1da8d96fa6d628326d8eb3698438"><code>a0ecf1b</code></a> Update Changelog</li>
<li><a href="https://github.com/rubocop/rubocop/commit/d6345ac5d462168ba08a371bcfc948393ce05739"><code>d6345ac</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11177">#11177</a> from epaew/bugfix/style/object_then</li>
<li><a href="https://github.com/rubocop/rubocop/commit/b13c21a54b1e26a44638c213efd51b79358737f1"><code>b13c21a</code></a> Fix a false positive for <code>Style/ObjectThen</code> cop with TargetRubyVersion < 2.6</li>
<li><a href="https://github.com/rubocop/rubocop/commit/3f3c8293ca112b59f670e130e56d2bb6977bf19c"><code>3f3c829</code></a> Fix a false positive for <code>Lint/DuplicateMethods</code></li>
<li><a href="https://github.com/rubocop/rubocop/commit/31720cec6704c201b3a677b218cca16b152ab5e5"><code>31720ce</code></a> [Fix <a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11150">#11150</a>] Improve redundant_regex_escape.rb</li>
<li><a href="https://github.com/rubocop/rubocop/commit/57e7c4510335936e389354f2f375278870691db8"><code>57e7c45</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11144">#11144</a> from si-lens/fix_auto_correction_bug_for_Style/Stri...</li>
<li><a href="https://github.com/rubocop/rubocop/commit/45da59a2f17f494f38d911091b91c4542003a49d"><code>45da59a</code></a> [Fix <a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11123">#11123</a> ] Fix auto correction bug for Style/StringLiterals</li>
<li><a href="https://github.com/rubocop/rubocop/commit/7b265aaff7df67fef6302dbfb803f13f1db546bf"><code>7b265aa</code></a> [Fix <a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11173">#11173</a>] Fix an incorrect autocorrect for <code>Style/CollectionCompact</code></li>
<li><a href="https://github.com/rubocop/rubocop/commit/dfb1ca52b9fbe3b96a8220db2e76b202419e1244"><code>dfb1ca5</code></a> Add autocorrect for <code>Layout/LineContinuationLeadingSpace</code></li>
<li>Additional commits viewable in <a href="https://github.com/rubocop/rubocop/compare/v1.38.0...v1.39.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