codeclimate/codeclimate-rubocop

View on GitHub
config/contents/lint/ambiguous_block_association.md

Summary

Maintainability
Test Coverage
This cop checks for ambiguous block association with method
when param passed without parentheses.

### Example:

    # bad
    some_method a { |val| puts val }

### Example:

    # good
    # With parentheses, there's no ambiguity.
    some_method(a) { |val| puts val }

    # good
    # Operator methods require no disambiguation
    foo == bar { |b| b.baz }

    # good
    # Lambda arguments require no disambiguation
    foo = ->(bar) { bar.baz }