Skip to content

Commit

Permalink
Merge #415
Browse files Browse the repository at this point in the history
415: Update rubocop requirement from ~> 1.40.0 to ~> 1.43.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.43</h2>
<h3>New features</h3>
<ul>
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11359">#11359</a>: Add new <code>Lint/UselessRescue</code> cop. (<a href="https://github.com/fatkodima"><code>`@​fatkodima</code></a>)</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11389">#11389</a>: Add autocorrect for <code>Style/MissingElse</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/pull/11386">#11386</a>: Fix a false positive for <code>Style/OperatorMethodCall</code> when using anonymous forwarding. (<a href="https://github.com/koic"><code>`@​koic</code></a>)</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11409">#11409</a>: Fix an incorrect autocorrect for <code>Style/HashSyntax</code> when using hash value omission and <code>EnforcedStyle: no_mixed_keys</code>. (<a href="https://github.com/koic"><code>`@​koic</code></a>)</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11405">#11405</a>: Fix undefined method `range_between' for Style/WhileUntilModifier. (<a href="https://github.com/such"><code>`@​such</code></a>)</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11374">#11374</a>: Fix an error for <code>Style/StringHashKeys</code> when using invalid symbol in encoding UTF-8 as keys. (<a href="https://github.com/koic"><code>`@​koic</code></a>)</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11392">#11392</a>: Fix an incorrect autocorrect for <code>Style/RedundantDoubleSplatHashBraces</code> using double splat in double splat hash braces. (<a href="https://github.com/koic"><code>`@​koic</code></a>)</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/8990">#8990</a>: Make <code>Style/HashEachMethods</code> aware of built-in <code>Thread.current</code>. (<a href="https://github.com/koic"><code>`@​koic</code></a>)</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11390">#11390</a>: Fix an incorrect autocorrect for <code>Style/HashSyntax</code> when hash first argument key and hash value only are the same which has a method call on the next line. (<a href="https://github.com/koic"><code>`@​koic</code></a>)</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11379">#11379</a>: Fix a false negative for <code>Style/OperatorMethodCall</code> when using <code>a.+ b.something</code>. (<a href="https://github.com/koic"><code>`@​koic</code></a>)</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11180">#11180</a>: Fix an error for <code>Style/RedundantRegexpEscape</code> when using <code>%r</code> to provide regexp expressions. (<a href="https://github.com/si-lens"><code>`@​si-lens</code></a>)</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11403">#11403</a>: Fix bad offense for parenthesised calls in literals for <code>omit_parentheses</code> style in <code>Style/MethodCallWithArgsParentheses</code>. (<a href="https://github.com/gsamokovarov"><code>`@​gsamokovarov</code></a>)</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11407">#11407</a>: Fix an error for <code>Style/HashSyntax</code> when expression follows hash key assignment. (<a href="https://github.com/fatkodima"><code>`@​fatkodima</code></a>)</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11377">#11377</a>: Fix <code>Style/OperatorMethodCall</code> when forwarding arguments. (<a href="https://github.com/sambostock"><code>`@​sambostock</code></a>)</li>`
</ul>
<h3>Changes</h3>
<ul>
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11382">#11382</a>: Require <code>unicode-display_width</code> 2.4.0 or higher. (<a href="https://github.com/fatkodima"><code>`@​fatkodima</code></a>)</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11381">#11381</a>: Require Parser 3.2.0.0 or higher. (<a href="https://github.com/koic"><code>`@​koic</code></a>)</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11380">#11380</a>: Disable <code>Style/YodaExpression</code> by default. (<a href="https://github.com/koic"><code>`@​koic</code></a>)</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11303">#11303</a>: Make <code>Metrics/ParameterLists</code> aware of <code>Struct.new</code> and <code>Data.define</code> blocks. (<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.43.0 (2023-01-10)</h2>
<h3>New features</h3>
<ul>
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11359">#11359</a>: Add new <code>Lint/UselessRescue</code> cop. ([<a href="https://github.com/fatkodima"><code>`@​fatkodima</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11389">#11389</a>: Add autocorrect for <code>Style/MissingElse</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/pull/11386">#11386</a>: Fix a false positive for <code>Style/OperatorMethodCall</code> when using anonymous forwarding. ([<a href="https://github.com/koic"><code>`@​koic</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11409">#11409</a>: Fix an incorrect autocorrect for <code>Style/HashSyntax</code> when using hash value omission and <code>EnforcedStyle: no_mixed_keys</code>. ([<a href="https://github.com/koic"><code>`@​koic</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11405">#11405</a>: Fix undefined method `range_between' for Style/WhileUntilModifier. ([<a href="https://github.com/such"><code>`@​such</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11374">#11374</a>: Fix an error for <code>Style/StringHashKeys</code> when using invalid symbol in encoding UTF-8 as keys. ([<a href="https://github.com/koic"><code>`@​koic</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11392">#11392</a>: Fix an incorrect autocorrect for <code>Style/RedundantDoubleSplatHashBraces</code> using double splat in double splat hash braces. ([<a href="https://github.com/koic"><code>`@​koic</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/8990">#8990</a>: Make <code>Style/HashEachMethods</code> aware of built-in <code>Thread.current</code>. ([<a href="https://github.com/koic"><code>`@​koic</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11390">#11390</a>: Fix an incorrect autocorrect for <code>Style/HashSyntax</code> when hash first argument key and hash value only are the same which has a method call on the next line. ([<a href="https://github.com/koic"><code>`@​koic</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11379">#11379</a>: Fix a false negative for <code>Style/OperatorMethodCall</code> when using <code>a.+ b.something</code>. ([<a href="https://github.com/koic"><code>`@​koic</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11180">#11180</a>: Fix an error for <code>Style/RedundantRegexpEscape</code> when using <code>%r</code> to provide regexp expressions. ([<a href="https://github.com/si-lens"><code>`@​si-lens</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11403">#11403</a>: Fix bad offense for parenthesised calls in literals for <code>omit_parentheses</code> style in <code>Style/MethodCallWithArgsParentheses</code>. ([<a href="https://github.com/gsamokovarov"><code>`@​gsamokovarov</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11407">#11407</a>: Fix an error for <code>Style/HashSyntax</code> when expression follows hash key assignment. ([<a href="https://github.com/fatkodima"><code>`@​fatkodima</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11377">#11377</a>: Fix <code>Style/OperatorMethodCall</code> when forwarding arguments. ([<a href="https://github.com/sambostock"><code>`@​sambostock</code></a>][])</li>`
</ul>
<h3>Changes</h3>
<ul>
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11382">#11382</a>: Require <code>unicode-display_width</code> 2.4.0 or higher. ([<a href="https://github.com/fatkodima"><code>`@​fatkodima</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11381">#11381</a>: Require Parser 3.2.0.0 or higher. ([<a href="https://github.com/koic"><code>`@​koic</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11380">#11380</a>: Disable <code>Style/YodaExpression</code> by default. ([<a href="https://github.com/koic"><code>`@​koic</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11303">#11303</a>: Make <code>Metrics/ParameterLists</code> aware of <code>Struct.new</code> and <code>Data.define</code> blocks. ([<a href="https://github.com/koic"><code>`@​koic</code></a>][])</li>`
</ul>
<h2>1.42.0 (2023-01-01)</h2>
<h3>New features</h3>
<ul>
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11339">#11339</a>: Add new <code>Style/MapToSet</code> cop. ([<a href="https://github.com/koic"><code>`@​koic</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11341">#11341</a>: Add new <code>Style/MinMaxComparison</code> cop. ([<a href="https://github.com/koic"><code>`@​koic</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/9222">#9222</a>: Add new <code>Style/YodaExpression</code> cop. ([<a href="https://github.com/fatkodima"><code>`@​fatkodima</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11261">#11261</a>: Allow inherit_from to accept a glob. ([<a href="https://github.com/alexevanczuk"><code>`@​alexevanczuk</code></a>][])</li>`
</ul>
<h3>Bug fixes</h3>
<ul>
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11204">#11204</a>: Fix a false negative for <code>Lint/RedundantCopDisableDirective</code> when using <code>--except</code> command line option. ([<a href="https://github.com/koic"><code>`@​koic</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11369">#11369</a>: Fix an error for <code>Lint/UselessRuby2Keywords</code> when using <code>Proc#ruby2_keywords</code>. ([<a href="https://github.com/koic"><code>`@​koic</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11351">#11351</a>: Fix an incorrect autocorrect for <code>Lint/RegexpAsCondition</code> when using regexp literal with bang. ([<a href="https://github.com/koic"><code>`@​koic</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11329">#11329</a>: Accept simple freezed constants in <code>Layout/ClassStructure</code> and correctly handle class methods. ([<a href="https://github.com/fatkodima"><code>`@​fatkodima</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11344">#11344</a>: Fix an error for <code>Style/GuardClause</code> when using heredoc as an argument of raise in <code>then</code> branch and it does not have <code>else</code> branch. ([<a href="https://github.com/koic"><code>`@​koic</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11335">#11335</a>: Fix an error for <code>Style/RequireOrder</code> when only one <code>reuqire</code>. ([<a href="https://github.com/koic"><code>`@​koic</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11348">#11348</a>: Fix an error for <code>Style/SelectByRegexp</code> when block body is empty. ([<a href="https://github.com/koic"><code>`@​koic</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11320">#11320</a>: Fix a false positive for <code>Lint/RequireParentheses</code> when assigning ternary operator. ([<a href="https://github.com/koic"><code>`@​koic</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11361">#11361</a>: Make <code>Style/MethodDefParentheses</code> aware of Ruby 3.2's anonymous rest and keyword rest arguments. ([<a href="https://github.com/koic"><code>`@​koic</code></a>][])</li>`
<li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11346">#11346</a>: Fix a false positive for <code>Style/RedundantStringEscape</code> when using escaped space in heredoc. ([<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/c3111370dcd300628af89c26cadddf7b679cfbd8"><code>c311137</code></a> Cut 1.43</li>
<li><a href="https://github.com/rubocop/rubocop/commit/d1e7287cccade4849cd2a8060172249544843d12"><code>d1e7287</code></a> Update Changelog</li>
<li><a href="https://github.com/rubocop/rubocop/commit/2f298928faaf870903a123afdeefaae552087d3b"><code>2f29892</code></a> Add autocorrect for <code>Style/MissingElse</code></li>
<li><a href="https://github.com/rubocop/rubocop/commit/73a412159e1a7c5409cdb6e4ff23456ecf7e2487"><code>73a4121</code></a> [Fix <a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11303">#11303</a>] Make <code>Metrics/ParameterLists</code> aware of <code>Struct.new</code> and `Data.de...</li>
<li><a href="https://github.com/rubocop/rubocop/commit/46963bdd49c1808f33fe70da714ec401028efc0a"><code>46963bd</code></a> [Fix <a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11409">#11409</a>] Fix an incorrect autocorrect for <code>Style/HashSyntax</code></li>
<li><a href="https://github.com/rubocop/rubocop/commit/1e5f19a9afddb0e5123c86efb0f5957431c7a6d4"><code>1e5f19a</code></a> [Fix <a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/8990">#8990</a>] Make <code>Style/HashEachMethods</code> aware of <code>Thread.current</code></li>
<li><a href="https://github.com/rubocop/rubocop/commit/de30af85724a1d860976b5010e0b6adbf1bdb294"><code>de30af8</code></a> Fix an error for <code>Style/HashSyntax</code> when expression follows hash key assignment</li>
<li><a href="https://github.com/rubocop/rubocop/commit/52a448fd97b51f88e9ac5c126f4597d34be73480"><code>52a448f</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11406">#11406</a> from sorare/11405</li>
<li><a href="https://github.com/rubocop/rubocop/commit/1ac1ce70b33df544435f0c9f25a2a746546ab616"><code>1ac1ce7</code></a> [Fix <a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11405">#11405</a>] Fix Style/WhileUntilModifier with ruby 3.1</li>
<li><a href="https://github.com/rubocop/rubocop/commit/3ce55d00bdb8b9532623d38e49beb2976229af48"><code>3ce55d0</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11403">#11403</a> from gsamokovarov/omit-parentheses-call-with-block-...</li>
<li>Additional commits viewable in <a href="https://github.com/rubocop/rubocop/compare/v1.40.0...v1.43.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>
  • Loading branch information
meili-bors[bot] and dependabot[bot] committed Jan 11, 2023
2 parents 762f776 + d83958a commit 80b6c4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Gemfile
Expand Up @@ -17,5 +17,5 @@ group :development, :test do
end

group :development do
gem 'rubocop', '~> 1.40.0', require: false
gem 'rubocop', '~> 1.43.0', require: false
end

0 comments on commit 80b6c4a

Please sign in to comment.