Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update rubocop requirement from 1.41.1 to 1.42.0 (#349)
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.42</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> <li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/10858">#10858</a>: Fix <code>Style/IdenticalConditionalBranches</code> to ignore identical leading lines when branch has single child and is used in return context. (<a href="https://github.com/fatkodima"><code>@fatkodima</code></a>)</li> <li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11237">#11237</a>: Fix <code>Layout/CommentIndentation</code> comment aligned with access modifier indentation when EnforcedStyle is outdent. (<a href="https://github.com/soroktree"><code>@soroktree</code></a>)</li> <li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11330">#11330</a>: Fix an error for <code>Style/RequireOrder</code> when using <code>require</code> inside <code>rescue</code> body. (<a href="https://github.com/fatkodima"><code>@fatkodima</code></a>)</li> <li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/8751">#8751</a>: Accept <code>super</code> within ranges for <code>Layout/SpaceAroundKeyword</code> cop. (<a href="https://github.com/fatkodima"><code>@fatkodima</code></a>)</li> <li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/10194">#10194</a>: Accept bracketed arrays within 2d arrays containing subarrays with complex content for <code>Style/WordArray</code> cop. (<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/issues/8366">#8366</a>: Ignore private constants in <code>Layout/ClassStructure</code> cop. (<a href="https://github.com/fatkodima"><code>@fatkodima</code></a>)</li> <li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11325">#11325</a>: Support autocorrection for percent literals in <code>Style/ConcatArrayLiterals</code>. (<a href="https://github.com/fatkodima"><code>@fatkodima</code></a>)</li> <li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11327">#11327</a>: Make <code>Style/ZeroLengthPredicate</code> aware of <code>array.length.zero?</code>. (<a href="https://github.com/koic"><code>@koic</code></a>)</li> <li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/10976">#10976</a>: Support pattern matching for <code>Lint/OutOfRangeRegexpRef</code> cop. (<a href="https://github.com/fatkodima"><code>@fatkodima</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.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> <li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/10858">#10858</a>: Fix <code>Style/IdenticalConditionalBranches</code> to ignore identical leading lines when branch has single child and is used in return context. ([<a href="https://github.com/fatkodima"><code>@fatkodima</code></a>][])</li> <li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11237">#11237</a>: Fix <code>Layout/CommentIndentation</code> comment aligned with access modifier indentation when EnforcedStyle is outdent. ([<a href="https://github.com/soroktree"><code>@soroktree</code></a>][])</li> <li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11330">#11330</a>: Fix an error for <code>Style/RequireOrder</code> when using <code>require</code> inside <code>rescue</code> body. ([<a href="https://github.com/fatkodima"><code>@fatkodima</code></a>][])</li> <li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/8751">#8751</a>: Accept <code>super</code> within ranges for <code>Layout/SpaceAroundKeyword</code> cop. ([<a href="https://github.com/fatkodima"><code>@fatkodima</code></a>][])</li> <li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/10194">#10194</a>: Accept bracketed arrays within 2d arrays containing subarrays with complex content for <code>Style/WordArray</code> cop. ([<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/issues/8366">#8366</a>: Ignore private constants in <code>Layout/ClassStructure</code> cop. ([<a href="https://github.com/fatkodima"><code>@fatkodima</code></a>][])</li> <li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11325">#11325</a>: Support autocorrection for percent literals in <code>Style/ConcatArrayLiterals</code>. ([<a href="https://github.com/fatkodima"><code>@fatkodima</code></a>][])</li> <li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11327">#11327</a>: Make <code>Style/ZeroLengthPredicate</code> aware of <code>array.length.zero?</code>. ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li> <li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/10976">#10976</a>: Support pattern matching for <code>Lint/OutOfRangeRegexpRef</code> cop. ([<a href="https://github.com/fatkodima"><code>@fatkodima</code></a>][])</li> </ul> <h2>1.41.1 (2022-12-22)</h2> <h3>Bug fixes</h3> <ul> <li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11293">#11293</a>: Fix a false negative for <code>Style/Documentation</code> when using macro. ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li> <li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11313">#11313</a>: Fix a false positive for <code>Naming/BlockForwarding</code> when the block argument is reassigned. ([<a href="https://github.com/fatkodima"><code>@fatkodima</code></a>][])</li> <li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11014">#11014</a>: Fix a false positive for <code>Style/Alias</code>cop when alias in a method def. ([<a href="https://github.com/ydah"><code>@ydah</code></a>][])</li> <li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11309">#11309</a>: Fix a false positive for <code>Style/RedundantStringEscape</code> when using a redundant escaped string interpolation <code>\#\{foo}</code>. ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li> <li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11307">#11307</a>: Fix an error for <code>Style/GuardClause</code> when using lvar as an argument of raise in <code>else</code> branch. ([<a href="https://github.com/ydah"><code>@ydah</code></a>][])</li> <li><a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11308">#11308</a>: Fix disabling departments via comment. ([<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/issues/11312">#11312</a>: Mark <code>Style/ConcatArrayLiterals</code> as unsafe. ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li> </ul> <h2>1.41.0 (2022-12-20)</h2> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/rubocop/rubocop/commit/0f7416a0b3ea4a3d4edb1f2091ce8706ea3e6640"><code>0f7416a</code></a> Cut 1.42</li> <li><a href="https://github.com/rubocop/rubocop/commit/b58c2cd6de866a458fe0e3c34d51f55e376b7fe5"><code>b58c2cd</code></a> Update Changelog</li> <li><a href="https://github.com/rubocop/rubocop/commit/d8e5332b7c0fe6ba906911d29819551aad3c40b7"><code>d8e5332</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11372">#11372</a> from koic/ci_against_ruby_3_2_on_windows</li> <li><a href="https://github.com/rubocop/rubocop/commit/ac9e72365946291da35cc43ea245dc2253316037"><code>ac9e723</code></a> CI against Ruby 3.2 on Windows</li> <li><a href="https://github.com/rubocop/rubocop/commit/33bf9a0252085c4f97b8b7f8930d62964ec70441"><code>33bf9a0</code></a> Fix an error for <code>Lint/UselessRuby2Keywords</code></li> <li><a href="https://github.com/rubocop/rubocop/commit/3cce8c8443fa5d8cda0fffaf2b633c7ee3ddfcf6"><code>3cce8c8</code></a> Fix <code>Style/WordArray</code> for subarrays</li> <li><a href="https://github.com/rubocop/rubocop/commit/d5c303a85c1fa3861985ea16b8b7b66babd634bc"><code>d5c303a</code></a> Bump license years to 2023</li> <li><a href="https://github.com/rubocop/rubocop/commit/32e13c581231f1663496dcfc98d58ce77b089f4e"><code>32e13c5</code></a> Improve offense message for <code>Style/YodaExpression</code> cop</li> <li><a href="https://github.com/rubocop/rubocop/commit/d4aeaf1fe5a0b1f2e54c7e82f9f1959a95ca4023"><code>d4aeaf1</code></a> [Doc] Update the doc for <code>Style/MinMaxComparison</code></li> <li><a href="https://github.com/rubocop/rubocop/commit/7b4adef7661210c0699822b936c9fdc6789abf27"><code>7b4adef</code></a> Add examples for 2d arrays to <code>Style/WordArray</code> cop</li> <li>Additional commits viewable in <a href="https://github.com/rubocop/rubocop/compare/v1.41.1...v1.42.0">compare view</a></li> </ul> </details> <br /> 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 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> Co-authored-by: Matt Brictson <matt@mattbrictson.com>
- Loading branch information