Pattern: Malformed space in lambda literal
Issue: -
This rule checks for spaces between ->
and opening parameter brace in lambda literals.
EnforcedStyle: require_no_space (default)
# bad
a = -> (x, y) { x + y }
# good
a = ->(x, y) { x + y }
EnforcedStyle: require_space
# bad
a = ->(x, y) { x + y }
# good
a = -> (x, y) { x + y }
Attribute | Value |
---|---|
EnforcedStyle | require_no_space |
SupportedStyles | require_no_space, require_space |