-
-
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
Add new Performance/RedundantStringChars
cop
#141
Conversation
2be96ea
to
bfeb1f9
Compare
Updated. |
bfeb1f9
to
9348ef6
Compare
Performance/StringChars
copPerformance/RedundantStringChars
cop
I thought about it a little more. This cop was originally created to primarily catch cases like And also updated implementation to catch |
9348ef6
to
f615047
Compare
Updated. |
Thanks! |
Closes #139
No need to call
#chars
and allocate an extra array when method can be directly called on string.Benchmark
Results