-
-
Notifications
You must be signed in to change notification settings - Fork 81
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
RedundantSplitRegexpArgument false positive when splitting by one space #222
Labels
bug
Something isn't working
Comments
koic
added a commit
to koic/rubocop-performance
that referenced
this issue
Mar 13, 2021
…tRegexpArgument` Fixes rubocop#222. This PR fixes a false positive for `Performance/RedundantSplitRegexpArgument` when `split` method argument is exactly one spece regexp `/ /`.
koic
added a commit
to koic/rubocop-performance
that referenced
this issue
Mar 13, 2021
…tRegexpArgument` Fixes rubocop#222. This PR fixes a false positive for `Performance/RedundantSplitRegexpArgument` when `split` method argument is exactly one spece regexp `/ /`.
8 tasks
koic
added a commit
to koic/rubocop-performance
that referenced
this issue
Mar 13, 2021
…tRegexpArgument` Fixes rubocop#222. This PR fixes a false positive for `Performance/RedundantSplitRegexpArgument` when `split` method argument is exactly one spece regexp `/ /`.
koic
added a commit
to koic/rubocop-performance
that referenced
this issue
Mar 20, 2021
…tRegexpArgument` Fixes rubocop#222. This PR fixes a false positive for `Performance/RedundantSplitRegexpArgument` when `split` method argument is exactly one spece regexp `/ /`.
koic
added a commit
that referenced
this issue
Mar 22, 2021
…lit_regexp_argument [Fix #222] Fix a false positive for `Performance/RedundantSplitRegexpArgument`
Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The check triggers on the following line of code
and suggests replacing with a string
But note that those are not the same:
Expected behavior
Performance/RedundantSplitRegexpArgument
should not have triggered hereActual behavior
Rubocop triggers
Performance/RedundantSplitRegexpArgument
Steps to reproduce the problem
Run rubocop on example code above
RuboCop version
The text was updated successfully, but these errors were encountered: