Pattern: Malformed whitespace around func
Issue: -
Operators should be surrounded by a single whitespace when defining them.
Examples of correct code:
func <| (lhs: Int, rhs: Int) -> Int {}
func <|< <A>(lhs: A, rhs: A) -> A {}
func abc(lhs: Int, rhs: Int) -> Int {}
Examples of incorrect code:
↓func <|(lhs: Int, rhs: Int) -> Int {}
↓func <|<<A>(lhs: A, rhs: A) -> A {}
↓func <| (lhs: Int, rhs: Int) -> Int {}
↓func <|< <A>(lhs: A, rhs: A) -> A {}
↓func <| (lhs: Int, rhs: Int) -> Int {}
↓func <|< <A>(lhs: A, rhs: A) -> A {}