4 ms·
No it will not.
by saagarjha 10mo ago
No it will not.
- deleted 10mo ago[deleted]
- deleted 10mo ago[deleted]
- willtemperley 10mo agoAre you sure about that? let x: Int? = 0 let y: Int = x! git ls-files -z -- '*.swift' | xargs -0 swift format lint --parallel error: [NeverForceUnwrap] do not force unwrap 'x'
- saagarjha 10mo agoYou’ve turned that on; it’s off by default for good reasons: https://github.com/swiftlang/swift-format/blob/02c5a88a32719aad2ba7c9aa22341025d354fd50/Sources/SwiftFormat/Rules/NeverForceUnwrap.swift#L28 https://github.com/swiftlang/swift-format/blob/02c5a88a32719...
- willtemperley 10mo agoThat's the standard for swiftlang CI which is what I use.
- saagarjha 10mo agoI don’t think it is?