troessner / reek

Code smell detector for Ruby
https://github.com/troessner/reek
MIT License
4k stars 279 forks source link

Update rubocop-performance requirement from ~> 1.19.0 to ~> 1.20.0 #1754

Closed dependabot[bot] closed 6 months ago

dependabot[bot] commented 6 months ago

Updates the requirements on rubocop-performance to permit the latest version.

Release notes

Sourced from rubocop-performance's releases.

RuboCop Performance 1.20.0 (The RubyConf Taiwan 2023 Edition)

New features

  • #384: Support optimized String#dup for Performance/UnfreezeString when Ruby 3.3+. (@​koic)

Bug fixes

  • #374: Fix an error for Performance/MapMethodChain when using map method chain without receiver. (@​koic)
  • #386: Fix a false negative for Performance/StringIdentifierArgument when using string interpolation. (@​earlopain)
  • #419: Make Performance/Count, Performance/FixedSize, Performance/FlatMap, Performance/InefficientHashSearch, Performance/RangeInclude, Performance/RedundantSortBlock, Performance/ReverseFirst, Performance/SelectMap, Performance/Size, Performance/SortReverse, and Performance/TimesMap cops aware of safe navigation operator. (@​koic)
  • #390: Fix a false negative for Performance/ReverseEach when safe navigation is between reverse and each. (@​fatkodima)
  • #401: Make Performance/Sum aware of safe navigation operator. (@​koic)

Changes

Changelog

Sourced from rubocop-performance's changelog.

1.20.0 (2023-12-16)

New features

  • #384: Support optimized String#dup for Performance/UnfreezeString when Ruby 3.3+. ([@​koic][])

Bug fixes

  • #374: Fix an error for Performance/MapMethodChain when using map method chain without receiver. ([@​koic][])
  • #386: Fix a false negative for Performance/StringIdentifierArgument when using string interpolation. ([@​earlopain][])
  • #419: Make Performance/Count, Performance/FixedSize, Performance/FlatMap, Performance/InefficientHashSearch, Performance/RangeInclude, Performance/RedundantSortBlock, Performance/ReverseFirst, Performance/SelectMap, Performance/Size, Performance/SortReverse, and Performance/TimesMap cops aware of safe navigation operator. ([@​koic][])
  • #390: Fix a false negative for Performance/ReverseEach when safe navigation is between reverse and each. ([@​fatkodima][])
  • #401: Make Performance/Sum aware of safe navigation operator. ([@​koic][])

Changes

  • #389: Improve Performance/MapCompact to handle more safe navigation calls. ([@​fatkodima][])
  • #395: Enhance Performance/StringInclude to handle === method. ([@​fatkodima][])
  • #388: Require RuboCop 1.30+ as runtime dependency. ([@​koic][])
  • #380: Require RuboCop AST 1.30.0+. ([@​koic][])

1.19.1 (2023-09-17)

Bug fixes

  • #367: Fix an incorrect autocorrect for Performance/BlockGivenWithExplicitBlock when using Lint/UnusedMethodArgument's autocorrection together. ([@​ymap][])
  • #370: Fix an incorrect autocorrect for Performance/RedundantMatch when expressions with lower precedence than =~ are used as an argument. ([@​ymap][])
  • #365: Fix false positives for Performance/ArraySemiInfiniteRangeSlice when using [] with string literals. ([@​koic][])
  • #373: Set target version for Performance/UnfreezeString. ([@​tagliala][])

1.19.0 (2023-08-13)

New features

  • #364: Add new Performance/MapMethodChain cop. ([@​koic][])
  • #363: Support safe navigation operator for Performance/ArraySemiInfiniteRangeSlice, Performance/DeletePrefix, Performance/DeleteSuffix, Performance/Detect, Performance/EndWith, Performance/InefficientHashSearch, Performance/MapCompact, Performance/RedundantSplitRegexpArgument, Performance/ReverseEach, Performance/ReverseFirst, Performance/SelectMap, Performance/Squeeze, Performance/StartWith, Performance/StringInclude, and Performance/StringReplacement cops. ([@​koic][])

1.18.0 (2023-05-21)

Bug fixes

  • #359: Fix a false positive for Performance/RedundantEqualityComparisonBlock when the block variable is used on both sides of ==. ([@​koic][])
  • #351: Fix an incorrect autocorrect for Performance/ConstantRegexp and Performance/RegexpMatch when autocorrecting both at the same time. ([@​fatkodima][])

Changes

1.17.1 (2023-04-09)

... (truncated)

Commits
  • f79ecaa Cut 1.20.0
  • 5ec8988 Update Changelog
  • 416e05c Merge pull request #423 from koic/fix_false_positives_for_performance_times_map
  • 68632dd [Fix #421] Fix false positives for Performance/TimesMap
  • 8834ff4 Merge pull request #420 from koic/make_some_cop_aware_of_safe_navigation_oper...
  • bf85c6d Merge pull request #418 from koic/support_optimized_string_dup_for_performanc...
  • 93cd79c Make some cops aware of safe navigation operator
  • 76911d0 Remove an useless code
  • 7ac5b60 [Fix #384] Support optimized String#dup for Performance/UnfreezeString
  • 461168f Merge pull request #402 from koic/make_performance_sum_aware_of_safe_navigati...
  • Additional commits viewable in compare view


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 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[bot] commented 6 months ago

A newer version of rubocop-performance exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged.