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
max
map
Code:
list.map { |i| i.size }.max
Ameba auto correct
ameba --fix
The map is not replaced with max_of, but simply max is removed.
list.map(&.size)
The text was updated successfully, but these errors were encountered:
The original code when I discovered this behavior was:
max = glossary_list.map { |g| g.name.size }.max.not_nil!
Sorry, something went wrong.
Interestingly it occurs only when both Style/VerboseBlock and Performance/MinMaxAfterMap rules are enabled and trying to auto-correct the code.
Style/VerboseBlock
Performance/MinMaxAfterMap
@FnControlOption Could you take a look at it, please?
Hi @Sija, hope you are doing well. Unfortunately, I won’t have much time to look at this until around December 14
IndexError
Lint/RequireParentheses
No branches or pull requests
Code:
list.map { |i| i.size }.max
Ameba auto correct
The map is not replaced with max_of, but simply max is removed.
list.map(&.size)
The text was updated successfully, but these errors were encountered: