class RuboCop::Cop::Style::SuperWithArgsParentheses


super(name, age)
# good
super name, age
# bad
@example
`super` is a keyword and is provided as a distinct cop from those designed for method call.
Enforces the presence of parentheses in ‘super` containing arguments.

def on_super(node)

def on_super(node)
  return if node.parenthesized?
  add_offense(node) do |corrector|
    range = node.loc.keyword.end.join(node.first_argument.source_range.begin)
    corrector.replace(range, '(')
    corrector.insert_after(node.last_argument, ')')
  end
end