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

Feature: introduce RuboCop performance #494

Merged
merged 4 commits into from
Feb 28, 2024

Conversation

tagliala
Copy link
Contributor

Hi,

I'm proposing to add RuboCop performance to avoid simple mistakes that can improve performance, like capturing matchdata when checking regexp instead of using match?

@sds
Copy link
Owner

sds commented Feb 26, 2024

Generally supportive. Can we get the rest of the suite passing? Thank you.

@tagliala tagliala force-pushed the chore/introduce-rubocop-performance branch 2 times, most recently from 3880d16 to 2cebb66 Compare February 27, 2024 07:56
Appraisals Outdated Show resolved Hide resolved
@tagliala tagliala marked this pull request as draft February 27, 2024 11:43
@tagliala
Copy link
Contributor Author

tagliala commented Feb 27, 2024

Probably it would be better to drop support for old RuboCop versions before

Disable false Performance/Detect positives because `tree` is not
reversable
- Performance/DeleteSuffix (unsafe)
- Performance/StringReplacement
- Performance/UnfreezeString (unsafe)
@tagliala tagliala force-pushed the chore/introduce-rubocop-performance branch from 2cebb66 to 9435642 Compare February 27, 2024 11:52
@tagliala tagliala marked this pull request as ready for review February 27, 2024 11:54
@sds sds merged commit c7d0ff8 into sds:main Feb 28, 2024
35 checks passed
@sds
Copy link
Owner

sds commented Feb 28, 2024

Thanks!

@tagliala tagliala deleted the chore/introduce-rubocop-performance branch February 29, 2024 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants