3 ms·
Are 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 n
by willtemperley 10mo ago
Are 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?