openSUSE / software-o-o

The site behind https://software.opensuse.org. It is the default web interface to download openSUSE distributions and to search for OBS packages. Packaged at https://build.opensuse.org/project/show/openSUSE:infrastructure:software.opensuse.org
https://software.opensuse.org/
GNU General Public License v2.0
136 stars 111 forks source link

Update rubocop-performance 1.14.3 → 1.20.0 (minor) #1432

Closed depfu[bot] closed 7 months ago

depfu[bot] commented 8 months ago

Here is everything you need to know about this update. Please take a good look at what changed and the test results before merging this pull request.

What changed?

✳️ rubocop-performance (1.14.3 → 1.20.0) · Repo · Changelog

Release Notes

1.20.0

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

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

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

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

Bug fixes

  • #352: Fix the default config for AllowRegexpMatch option of Performance/RedundantEqualityComparisonBlock. (@koic)

1.17.0

New features

  • #347: Add AllowRegexpMatch option to Performance/RedundantEqualityComparisonBlock. (@koic)

Bug fixes

  • #346: Fix a false positive for Performance/StringIdentifierArgument when using a command method with receiver. (@koic)
  • #344: Fix Performance/FlatMap autocorrection for chained methods on separate lines. (@fatkodima)

1.16.0

Changes

  • #332: Register offenses for variables against regexes in Performance/StringInclude. (@fatkodima)

1.15.2

Bug fixes

  • #313: Fix a false negative for Performance/RedundantStringChars when using str.chars.last without argument. (@koic)
  • #321: Fix a false positive for Performance/Sum when using TargetRubyVersion is 2.3 or lower. (@koic)
  • #314: Fix Performance/RegexpMatch to handle ::Regexp. (@fatkodima)

Changes

1.15.1

Bug fixes

  • #309: Fix an error for Performance/MapCompact when using map(&:do_something).compact and there is a line break after map.compact and assigning with ||=. (@koic)

Changes

  • #307: Support autocorrection even if reject is used on Performance/Count. (@r7kamura)

1.15.0

New features

  • #305: Support numbered parameter for Performance/RedundantSortBlock, Performance/SortReverse, and Performance/TimesMap cops. (@koic)

Bug fixes

  • #299: Fix incorrect documentation URLs when using rubocop --show-docs-url. (@r7kamura)

Changes

  • #297: Support autocorrection on Performance/RedundantMatch when receiver is a Regexp literal. (@r7kamura)

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

✳️ rubocop (1.36.0 → 1.59.0) · Repo · Changelog

Release Notes

Too many releases to show here. View the full release notes.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

↗️ json (indirect, 2.6.2 → 2.7.1) · Repo · Changelog

Release Notes

2.7.1

What's Changed

Improved

Fixed

Misc

New Contributors

Full Changelog: v2.7.0...v2.7.1

2.7.0

What's Changed

Improved

  • Perf. improvements to Hash#to_json in pure implementation generator. by @vipulnsward in #203
  • Remove unnecessary initialization of create_id in JSON.parse() by @Watson1978 in #454

Added

Fixed

Compatibility changes

  • JRuby requires a minimum of Java 8 by @headius in #516
  • Rename JSON::ParseError to JSON:ParserError by @dalizard in #530
  • Removed code for Ruby 1.8 by @hsbt in #540
  • alias_method is private on Ruby 2.3 and 2.4 by @hsbt in #541
  • remove_method of Module is private at Ruby 2.3 and 2.4 by @hsbt in #544
  • [jruby] avoid using deprecated BigDecimal.new by @kares in #546
  • Always indent even if empty by @headius in #517

Misc

  • Update CI matrix by @hsbt in #521
  • Add missing changelog entries for 1.8.5 and 1.8.6 by @r7kamura in #520
  • Actions workflow - Add new OS's, Ruby 3.1, Ruby master, Windows by @MSP-Greg in #491
  • Skip unsupported test on JRuby by @nobu in #532
  • Skip BigDecimal tests when it's missing to load by @hsbt in #533
  • Simplify by @nobu in #531
  • Load extension ('json/ext') consistently in test_ext by @aeroastro in #536
  • Use test-unit-ruby-core gem by @hsbt in #539
  • [CI] Add Windows mswin job by @MSP-Greg in #545
  • Exclude truffleruby-head from Actions by @hsbt in #551
  • tests/ractor_test.rb: make assert_separately available by @lucaskanashiro in #506
  • Added changes for 2.7.0 and restore entries to 2.6.3 and 2.6.2 by @hsbt in #552

New Contributors

Full Changelog: v2.6.3...v2.7.0

2.6.3

What's Changed

  • bugfix json/pure mixing escaped with literal unicode raises Encoding::CompatibilityError by @notEthan in #483
  • Stop including the parser source LINE in exceptions by @casperisfine in #470

New Contributors

Full Changelog: v2.6.2...v2.6.3

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

↗️ parallel (indirect, 1.22.1 → 1.24.0) · Repo

Commits

See the full diff on Github. The new version differs by 15 commits:

↗️ parser (indirect, 3.1.2.1 → 3.2.2.4) · Repo · Changelog

Release Notes

3.2.2.4 (from changelog)

API modifications:

  • bump Racc to 1.7.1 (#930) (Koichi ITO)

Bugs fixed:

  • Fix an error for flip-flop with beginless or endless ranges (#946) (Koichi ITO)

3.2.2.3 (from changelog)

API modifications:

  • Add Racc to runtime dependencies (#929) (Koichi ITO)

3.2.2.2 (from changelog)

API modifications:

  • bump racc to 1.7.0 (#928) (Ilya Bylich)

3.2.1.1 (from changelog)

API modifications:

  • bump racc to 1.6.2 (#916) (Ilya Bylich)
  • backport tests for mixed usage of anonymous kwarg/kwrestarg and forwarded-arguments (#915) (Ilya Bylich)
  • add tests for kwopt+kwrest arguments and forwarded_kwrestarg. (#913) (Ilya Bylich)

Bugs fixed:

  • builders/default: allow forwarded_kwrestarg with additional kwargs (#912) (Owen Stephens)

3.2.1.0 (from changelog)

API modifications:

  • Bump maintenance branches to 3.2.1 (#908) (Koichi ITO)
  • lexer.rl: extract strings lexing to lexer-strings.rl (#905) (Ilya Bylich)

Features implemented:

  • Ruby 3.3 support (#904) (Ole Friis Østergaard)

3.2.0.0 (from changelog)

API modifications:

  • lexer.rl: extract extend_string_escaped to a separate method (#893) (Ilya Bylich)
  • bump Racc to 1.6.1 (#890) (Koichi ITO)

Features implemented:

  • lexer.rl: use Ragel -F0 on non-CRuby (#894) (Benoit Daloze)
  • ruby32.y: Allow optional newlines before closing parenthesis (#892) (Koichi ITO)

Bugs fixed:

  • ruby32.y: fix a parse error when using forwarded argument with restarg (#889) (Koichi ITO)

3.1.3.0 (from changelog)

API modifications:

  • Bump maintenance branches to 3.1.3, 3.0.5, 2.7.7 (#886) (Koichi ITO)
  • ruby32.y: reuse nonlocal_var rule. (#879) (Ilya Bylich)
  • ruby32.y: reuse opt_nl rule. (#878) (Ilya Bylich)

Features implemented:

  • ruby32.y: implement forwarded restarg and kwrestarg. (#874) (Ilya Bylich)

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 68 commits:

↗️ regexp_parser (indirect, 2.8.1 → 2.8.3) · Repo · Changelog

Release Notes

2.8.3 (from changelog)

Fixed

  • fixed scanner errors for insignificant leading zeros in numerical group refs
    • e.g. (a)\k<01>, (a)\g<-01>, (a)?(?(01)b|c)
    • thanks to Markus Schirp for the report

2.8.2 (from changelog)

Fixed

  • handle a corner case where parsing redundant number escapes raised an error
    • e.g. parse(/\99/), which in Ruby is a valid Regexp that matches 99
    • thanks to Markus Schirp for the report

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 13 commits:

↗️ rubocop-ast (indirect, 1.21.0 → 1.30.0) · Repo · Changelog

Release Notes

1.30.0 (from changelog)

New features

1.29.0 (from changelog)

1.28.1 (from changelog)

Bug fixes

  • #262: Fix an error when parsing non UTF-8 frozen string. (@koic)

1.28.0 (from changelog)

New features

  • #259: Add forwarded_kwrestarg node to AST::Builder. (@koic)

1.27.0 (from changelog)

New features

  • #229: Add source_range method to NodePattern. (@koic)

1.26.0 (from changelog)

New features

  • #255: Make Node#class_constructor? aware of Ruby 3.2's Data.define. (@koic)
  • #255: Make Node#class_construcor? aware of Ruby 2.7's numbered parameters. (@koic)

1.25.0 (from changelog)

New features

  • #256: Support Parser::Ruby33 for Ruby 3.3 parser (experimental). (@koic)

1.24.0 (from changelog)

New features

  • #245: Add node types forwarded_restarg and forwarded_kwrestarg. (@ydah)

1.23.0 (from changelog)

New features

  • #242: Add character_literal? to StrNode. (@koic)

1.22.0 (from changelog)

New features

  • #240: Add a type predicate new_line? to Token. (@tdeo)

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

↗️ ruby-progressbar (indirect, 1.11.0 → 1.13.0) · Repo · Changelog

Release Notes

1.13.0 (from changelog)

Add

  • Ability To Allow Different Projectors To Be Used For Time Estimates
  • Concept Of A Projector
  • Ability To Access Progress Bar Instance Using Enumerator Refinement

Remove

  • smoothing Option

Change

  • Issue Caused By Ruby Bug

1.12.0 (from changelog)

Add

  • Ability To Swap Out Running Average Calculators
  • running_average_rate As Configuration Option
  • Wall Clock Time To Completion To The Format Elements

Change

  • Rename Running Average Calculator To Smoothed Average Calculator
  • Rename smoothing To running_average_rate
  • Rename smoothing_factor To rate
  • Allow Timer's Elapsed Seconds To Calculate Even If Not Started

Does any of this look wrong? Please let us know.

↗️ unicode-display_width (indirect, 2.2.0 → 2.5.0) · Repo · Changelog

Release Notes

2.5.0 (from changelog)

  • Unicode 15.1

2.4.2 (from changelog)

More performance improvements:

  • Optimize lookup of first 4096 codepoints
  • Avoid overwrite lookup if no overwrites are set

2.4.1 (from changelog)

  • Improve general performance!
  • Further improve performance for ASCII strings

You should really upgrade - it's much faster now!

2.4.0 (from changelog)

  • Improve performance for ASCII-only strings, by @fatkodima
  • Require Ruby 2.4

2.3.0 (from changelog)

  • Unicode 15.0

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 31 commits:

🆕 language_server-protocol (added, 3.17.0.3)


Depfu Status

Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.

All Depfu comment commands
@​depfu rebase
Rebases against your default branch and redoes this update
@​depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@​depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@​depfu cancel merge
Cancels automatic merging of this PR
@​depfu close
Closes this PR and deletes the branch
@​depfu reopen
Restores the branch and reopens this PR (if it's closed)
@​depfu pause
Ignores all future updates for this dependency and closes this PR
@​depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@​depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)
depfu[bot] commented 7 months ago

Closed in favor of #1436.