Skip to content
Snippets Groups Projects
Commit 9d79cf1e authored by Markus Reiter's avatar Markus Reiter
Browse files

Reference RuboCop issue.

parent 71a79e7e
No related branches found
No related tags found
No related merge requests found
......@@ -110,7 +110,10 @@ module Formatter
end
def comma_and(*items)
*items, last = items.map(&:to_s) # rubocop:disable Lint/ShadowedArgument, TODO: Remove when RuboCop 0.57.3 is released.
# TODO: Remove when RuboCop 0.57.3 is released.
# False positive has been fixed and merged, but is not yet in a
# stable release: https://github.com/rubocop-hq/rubocop/pull/6038
*items, last = items.map(&:to_s) # rubocop:disable Lint/ShadowedArgument
return last if items.empty?
"#{items.join(", ")} and #{last}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment