class RuboCop::Cop::Style::OptionalArguments

Checks for optional arguments to methods that do not come at the end of the argument list.

@safety

This cop is unsafe because changing a method signature will
implicitly change behavior.

@example

# bad
def foo(a = 1, b, c)
end

# good
def baz(a, b, c = 1)
end

def foobar(a = 1, b = 2, c = 3)
end