We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Performance/RedundantSortBlock
https://docs.rubocop.org/rubocop-performance/cops_performance.html#performanceredundantsortblock
# bad array.sort { |x, y| x <=> y } # good array.sort
# bad array.sort! { |x, y| x <=> y } # good array.sort! # bad array.min { |x, y| x <=> y } # good array.min # bad array.min { |x, y| y <=> x } # good array.max # bad array.max { |x, y| x <=> y } # good array.max # bad array.max { |x, y| y <=> x } # good array.min # bad array.minmax { |x, y| x <=> y } # good array.minmax
The text was updated successfully, but these errors were encountered:
No branches or pull requests
https://docs.rubocop.org/rubocop-performance/cops_performance.html#performanceredundantsortblock
Implemented
Not implemented
The text was updated successfully, but these errors were encountered: