Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps-dev): bump rubocop-performance from 1.23.1 to 1.24.0 in /Library/Homebrew #19329

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 18, 2025

Bumps rubocop-performance from 1.23.1 to 1.24.0.

Release notes

Sourced from rubocop-performance's releases.

RuboCop Performance 1.24.0

New features

  • #490: Pluginfy RuboCop Performance. (@​koic)
  • #462: Add new Performance/ZipWithoutBlock cop that checks patterns like .map { |id| [id] } or .map { [_1] } and can replace them with .zip. (@​corsonknowles)

Bug fixes

Changelog

Sourced from rubocop-performance's changelog.

1.24.0 (2025-02-16)

New features

  • #490: Pluginfy RuboCop Performance. ([@​koic][])
  • #462: Add new Performance/ZipWithoutBlock cop that checks patterns like .map { |id| [id] } or .map { [_1] } and can replace them with .zip. ([@​corsonknowles][])

Bug fixes

  • #484: Fix Performance/CaseWhenSplat cop error on when node without body. ([@​viralpraxis][])
Commits
  • 24a3a4e Cut 1.24.0
  • 20c07a2 Update Changelog
  • f6e7da0 Merge pull request #490 from koic/pluginfy_with_lint_roller
  • b83339d Pluginfy RuboCop Performance
  • ab7ef16 Suppress redundant configuration logging for rubocop-performace
  • 2c00726 Avoid unnecessary send
  • 074bd2a Explicit default Performance/Sum cop config for the spec
  • 349ae04 Suppress RuboCop's offenses
  • 2d36cac Merge pull request #462 from corsonknowles/add_performance_use_zip_to_wrap_ar...
  • 063b56d Merge pull request #489 from dvandersluis/use-node-groups
  • Additional commits viewable in compare view

Dependabot compatibility score

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 commands and options

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 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)

@dependabot dependabot bot added dependencies Bumping Gemfile dependencies ruby Pull requests that update Ruby code labels Feb 18, 2025
@dduugg dduugg force-pushed the dependabot/bundler/Library/Homebrew/rubocop-performance-1.24.0 branch from 322f27c to 16e0269 Compare February 23, 2025 03:47
@dduugg dduugg force-pushed the dependabot/bundler/Library/Homebrew/rubocop-performance-1.24.0 branch from b62cba6 to e098307 Compare February 23, 2025 06:02
@@ -18,7 +18,10 @@ def initialize(name, command = nil)
@symlink = T.let(nil, T.nilable(Pathname))

@command = if command&.start_with?("!", "%")
# `drop` is not defined on `String`
# rubocop:disable Performance/ArraySemiInfiniteRangeSlice
Copy link
Member

@Bo98 Bo98 Feb 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't supposed to be enabled. Upstream actually states:

This cop was created due to a mistake in microbenchmark and hence is disabled by default

https://docs.rubocop.org/rubocop-performance/cops_performance.html#performancearraysemiinfiniterangeslice

Given the large amount of fixes in this PR in a version bump that is supposed to only have one extra cop, it seems like something's very broken here and cop violations here should not be trusted until we get that fixed.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, good catch. I think the default config is only loaded when the cop is a plugin: rubocop/rubocop-performance@v1.23.1...v1.24.0#diff-5a022e7952dfb32fcbdce1db566fce92f11071753c6ce2b60c09f5a0edf8b6fc

Unfortunately, I'm not able to follow the plugin migration suggested by the docs due to: rubocop/rubocop-rspec#2048 (comment)

return unless block_given?
return unless block
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This cop produces code with significantly worse performance when a block is being passed to the method and as such should not be enabled.

https://docs.rubocop.org/rubocop-performance/cops_performance.html#performanceblockgivenwithexplicitblock

@dduugg dduugg force-pushed the dependabot/bundler/Library/Homebrew/rubocop-performance-1.24.0 branch from e098307 to e26f6ea Compare February 23, 2025 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Bumping Gemfile dependencies ruby Pull requests that update Ruby code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants