Skip to content

Files

Latest commit

 

History

History
24 lines (15 loc) · 440 Bytes

arrow_spacing.md

File metadata and controls

24 lines (15 loc) · 440 Bytes

Pattern: Malformed arrow spacing

Issue: -

Description

This rule checks to see that there is spacing before and after the arrow operator that declares a function.

Examples

# Both of this will not trigger an error,
# even with arrow_spacing enabled.
x(-> 3)
x( -> 3)


# However, this will trigger an error
x((a,b)-> 3)

Further Reading