-
Couldn't load subscription status.
- Fork 0
empty_parameters
Ian Applebaum edited this page Jun 13, 2020
·
1 revision
Prefer () -> over Void -> .
- Identifier: empty_parameters
- Enabled by default: Enabled
- Supports autocorrection: Yes
- Kind: style
- Analyzer rule: No
- Minimum Swift compiler version: 3.0.0
- Default configuration: warning
let abc: () -> Void = {}func foo(completion: () -> Void)func foo(completion: () thows -> Void)let foo: (ConfigurationTests) -> Void throws -> Void)let foo: (ConfigurationTests) -> Void throws -> Void)let foo: (ConfigurationTests) ->Void throws -> Void)let abc: ↓(Void) -> Void = {}func foo(completion: ↓(Void) -> Void)func foo(completion: ↓(Void) throws -> Void)let foo: ↓(Void) -> () throws -> Void)