-
Couldn't load subscription status.
- Fork 0
operator_usage_whitespace
Ian Applebaum edited this page Jun 13, 2020
·
1 revision
Operators should be surrounded by a single whitespace when they are being used.
- Identifier: operator_usage_whitespace
- Enabled by default: Disabled
- Supports autocorrection: Yes
- Kind: style
- Analyzer rule: No
- Minimum Swift compiler version: 3.0.0
- Default configuration: warning
let foo = 1 + 2let foo = 1 > 2let foo = !falselet foo: Int?let foo: Array<String>let model = CustomView<Container<Button>, NSAttributedString>()let foo: [String]let foo = 1 +
2let range = 1...3let range = 1 ... 3let range = 1..<3#if swift(>=3.0)
foo()
#endifarray.removeAtIndex(-200)let name = "image-1"button.setImage(#imageLiteral(resourceName: "image-1"), for: .normal)let doubleValue = -9e-11let foo = GenericType<(UIViewController) -> Void>()let foo = Foo<Bar<T>, Baz>()let foo = SignalProducer<Signal<Value, Error>, Error>([ self.signal, next ]).flatten(.concat)let foo = 1↓+2let foo = 1↓ + 2let foo = 1↓ + 2let foo = 1↓ + 2let foo↓=1↓+2let foo↓=1 + 2let foo↓=barlet range = 1↓ ..< 3let foo = bar↓ ?? 0let foo = bar↓??0let foo = bar↓ != 0let foo = bar↓ !== bar2let v8 = Int8(1)↓ << 6let v8 = 1↓ << (6)let v8 = 1↓ << (6)
let foo = 1 > 2