return_arrow_whitespace - ApplebaumIan/BitbucketAPI GitHub Wiki
Returning Whitespace
Return arrow and return type should be separated by a single space or on a separate line.
- Identifier: return_arrow_whitespace
- Enabled by default: Enabled
- Supports autocorrection: Yes
- Kind: style
- Analyzer rule: No
- Minimum Swift compiler version: 3.0.0
- Default configuration: warning
Non Triggering Examples
func abc() -> Int {}
func abc() -> [Int] {}
func abc() -> (Int, Int) {}
var abc = {(param: Int) -> Void in }
func abc() ->
Int {}
func abc()
-> Int {}
Triggering Examples
func abc()↓->Int {}
func abc()↓->[Int] {}
func abc()↓->(Int, Int) {}
func abc()↓-> Int {}
func abc()↓ ->Int {}
func abc()↓ -> Int {}
var abc = {(param: Int)↓ ->Bool in }
var abc = {(param: Int)↓->Bool in }