codeclimate/codeclimate-rubocop

View on GitHub
config/contents/style/optional_arguments.md

Summary

Maintainability
Test Coverage
This cop checks for optional arguments to methods
that do not come at the end of the argument list

### 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