rubocop / rubocop-performance

An extension of RuboCop focused on code performance checks.
https://docs.rubocop.org/rubocop-performance
MIT License
682 stars 80 forks source link

[Fix #384] Support optimized `String#dup` for `Performance/UnfreezeString` #418

Closed koic closed 10 months ago

koic commented 10 months ago

Resolves #384.

This PR supports optimized String#dup for Performance/UnfreezeString when Ruby 3.3+.

To incorporate https://github.com/rubocop/rubocop/commit/d11e25f the RuboCop dependency will be updated to 1.48.1+ from 1.30.0+, but the supported runtime Ruby version will keep at Ruby 2.6+.


Before submitting the PR make sure the following are checked: