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.70.0 to 1.71.0 in the linters group (#4272)
Bumps the linters group with 1 update: [rubocop](https://github.com/rubocop/rubocop). Updates `rubocop` from 1.70.0 to 1.71.0 <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.71.0 (2025-01-22)</h2> <h3>New features</h3> <ul> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/13735">#13735</a>: Add new <code>Lint/ArrayLiteralInRegexp</code> cop. ([<a href="https://github.com/dvandersluis"><code>@dvandersluis</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/13507">#13507</a>: Add new <code>Style/HashSlice</code> cop. ([<a href="https://github.com/lovro-bikic"><code>@lovro-bikic</code></a>][])</li> </ul> <h3>Bug fixes</h3> <ul> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/13684">#13684</a>: Fix a false positive for <code>Style/FrozenStringLiteralComment</code> when using the frozen string literal magic comment in Active Admin's arb files. ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/13372">#13372</a>: Add <code>rubocop_cache</code> to the path given by <code>--cache-root</code> when pruning cache. ([<a href="https://github.com/capncavedan"><code>@capncavedan</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/13257">#13257</a>: Fix department disable/enable comments enabling the cop for the whole file even if that file is excluded by the cop. ([<a href="https://github.com/earlopain"><code>@earlopain</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/13704">#13704</a>: Fix false positives for <code>Lint/OutOfRangeRegexpRef</code> when matching with <code>match</code> using safe navigation. ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/13720">#13720</a>: Fix false positives for <code>Style/BlockDelimiters</code> when using brace blocks as conditions under <code>EnforcedStyle: semantic</code>. ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/13688">#13688</a>: Fix false negative on <code>Style/RedundantLineContinuation</code> when the continuation is preceded by an interpolated string. ([<a href="https://github.com/dvandersluis"><code>@dvandersluis</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/13677">#13677</a>: Fix false negative on <code>Style/RedundantLineContinuation</code> when the continuation is followed by a percent array. ([<a href="https://github.com/dvandersluis"><code>@dvandersluis</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/13692">#13692</a>: Fix false positive in <code>Style/RedundantLineContinuation</code> when the ruby code ends with a commented continuation. ([<a href="https://github.com/dvandersluis"><code>@dvandersluis</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/13675">#13675</a>: Fix invalid autocorrect for <code>Style/ArrayFirstLast</code> when calling <code>.[]</code> or <code>&.[]</code> with 0 or -1. ([<a href="https://github.com/dvandersluis"><code>@dvandersluis</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/13685">#13685</a>: Fix syntax error introduced by <code>Lint/SafeNavigationChain</code> when adding safe navigation to an operator call inside a hash. ([<a href="https://github.com/dvandersluis"><code>@dvandersluis</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/13725">#13725</a>: Fix an incorrect autocorrect for <code>Style/IfUnlessModifier</code> when using omitted hash values in an assignment. ([<a href="https://github.com/elliottt"><code>@elliottt</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/13667">#13667</a>: Maintain precedence in autocorrect for <code>Style/SoleNestedConditional</code>. ([<a href="https://github.com/tejasbubane"><code>@tejasbubane</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/issues/13679">#13679</a>: Fix false positive for <code>Style/RedundantLineContinuation</code> when calling methods with fully qualified constants. ([<a href="https://github.com/earlopain"><code>@earlopain</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/13728">#13728</a>: Fix a RuboCop error on provided glob pattern which matches directory. ([<a href="https://github.com/viralpraxis"><code>@viralpraxis</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/13693">#13693</a>: Fix <code>Style/ConditionalAssignment</code> cop error on <code>unless</code> without <code>else</code> and <code>assign_inside_condition</code> enforced style. ([<a href="https://github.com/viralpraxis"><code>@viralpraxis</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/13669">#13669</a>: Fix <code>Style/FrozenStringLiteralComment</code> cop error on unnormalized magic comment and <code>never</code> enforced style. ([<a href="https://github.com/viralpraxis"><code>@viralpraxis</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/13696">#13696</a>: Update <code>Metrics/CollectionLiteralLength</code> to only register for <code>[]</code> when called on <code>Set</code>. ([<a href="https://github.com/dvandersluis"><code>@dvandersluis</code></a>][])</li> </ul> <h3>Changes</h3> <ul> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/13709">#13709</a>: Add support for safe navigation to <code>Lint/FloatComparison</code>. ([<a href="https://github.com/dvandersluis"><code>@dvandersluis</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/13711">#13711</a>: Add support for safe navigation to <code>Layout/MultilineMethodCallBraceLayout</code>. ([<a href="https://github.com/dvandersluis"><code>@dvandersluis</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/13712">#13712</a>: Add support for safe navigation to <code>Layout/MultilineMethodArgumentLineBreaks</code>. ([<a href="https://github.com/dvandersluis"><code>@dvandersluis</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/13714">#13714</a>: Add support for safe navigation to <code>Security/CompoundHash</code>. ([<a href="https://github.com/dvandersluis"><code>@dvandersluis</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/13674">#13674</a>: Add support for safe navigation to <code>Style/BlockDelimiters</code>. ([<a href="https://github.com/dvandersluis"><code>@dvandersluis</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/13673">#13673</a>: Add support for safe navigation to <code>Style/CollectionMethods</code>. ([<a href="https://github.com/dvandersluis"><code>@dvandersluis</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/13672">#13672</a>: Add support for safe navigation to <code>Style/MapToSet</code>. ([<a href="https://github.com/dvandersluis"><code>@dvandersluis</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/13671">#13671</a>: Add support for safe navigation to <code>Style/MethodCallWithoutArgsParentheses</code>. ([<a href="https://github.com/dvandersluis"><code>@dvandersluis</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/13701">#13701</a>: Add support for safe navigation to <code>Lint/NumericOperationWithConstantResult</code>. ([<a href="https://github.com/dvandersluis"><code>@dvandersluis</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/13700">#13700</a>: Add support for safe navigation to <code>Lint/RedundantStringCoercion</code>. ([<a href="https://github.com/dvandersluis"><code>@dvandersluis</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/13698">#13698</a>: Add support for safe navigation to <code>Lint/UselessNumericOperation</code>. ([<a href="https://github.com/dvandersluis"><code>@dvandersluis</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/13686">#13686</a>: Add wildcard support to <code>--show-cops</code>. ([<a href="https://github.com/kyanagi"><code>@kyanagi</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/13724">#13724</a>: Make <code>Style/RedundantParentheses</code> aware of parenthesized assignment. ([<a href="https://github.com/koic"><code>@koic</code></a>][])</li> <li><a href="https://redirect.github.com/rubocop/rubocop/pull/13732">#13732</a>: Update <code>Style/RedundantLineContinuation</code> to handle required continuations following <code>super</code>. ([<a href="https://github.com/dvandersluis"><code>@dvandersluis</code></a>][])</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/rubocop/rubocop/commit/6b13abb7af829c04bb243387d36fad1bad80c12b"><code>6b13abb</code></a> Cut 1.71</li> <li><a href="https://github.com/rubocop/rubocop/commit/c923a8484eb2e8067fafdc1d9a0b196432ab7289"><code>c923a84</code></a> Update Changelog</li> <li><a href="https://github.com/rubocop/rubocop/commit/83958cb2c3d1ec1198a06f6954a6e900ed986964"><code>83958cb</code></a> Rename c_send to csend for consistency</li> <li><a href="https://github.com/rubocop/rubocop/commit/1f25c2c15ac054d652582ae4a903d92d03d45547"><code>1f25c2c</code></a> Add new <code>InternalAffairs/OnSendWithoutOnCSend</code> cop</li> <li><a href="https://github.com/rubocop/rubocop/commit/95f45cca783a782d0e4cfe0194d236e9d9e7e1d4"><code>95f45cc</code></a> [Fix <a href="https://redirect.github.com/rubocop/rubocop/issues/13323">#13323</a>] Add new <code>Lint/ArrayLiteralInRegexp</code> cop</li> <li><a href="https://github.com/rubocop/rubocop/commit/30c4e2047aa73332b1009b8ec70741fd37f0deb7"><code>30c4e20</code></a> Update <code>Lint/LiteralInInterpolation</code> to not handle array literals inside a re...</li> <li><a href="https://github.com/rubocop/rubocop/commit/7edf6d794775385923fb82e66a38017cbd39b3a9"><code>7edf6d7</code></a> [Doc] Move rubocop-i18n from puppetlabs to rubocop org</li> <li><a href="https://github.com/rubocop/rubocop/commit/c746991d66fd5a4013374962399f82c157f64d53"><code>c746991</code></a> Merge pull request <a href="https://redirect.github.com/rubocop/rubocop/issues/13737">#13737</a> from dvandersluis/fix-jruby-ci</li> <li><a href="https://github.com/rubocop/rubocop/commit/b3c80614d9922d9e2d0e376e6464af1b6e85a196"><code>b3c8061</code></a> Fix jruby CI error</li> <li><a href="https://github.com/rubocop/rubocop/commit/617fd406d16c08f6586cf8af2d4fc617719b154e"><code>617fd40</code></a> Merge pull request <a href="https://redirect.github.com/rubocop/rubocop/issues/13734">#13734</a> from dvandersluis/fix-expect-offense</li> <li>Additional commits viewable in <a href="https://github.com/rubocop/rubocop/compare/v1.70.0...v1.71.0">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.70.0&new-version=1.71.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 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 show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore <dependency name> major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself) - `@dependabot ignore <dependency name> minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself) - `@dependabot ignore <dependency name>` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself) - `@dependabot unignore <dependency name>` will remove all of the ignore conditions of the specified dependency - `@dependabot unignore <dependency name> <ignore condition>` will remove the ignore condition of the specified dependency and ignore conditions </details> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
- Loading branch information