Remix.run Logo
saagarjha 3 hours ago

No it will not.

2 hours ago | parent | next [-]
[deleted]
2 hours ago | parent | prev | next [-]
[deleted]
willtemperley 2 hours ago | parent | prev [-]

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 2 hours ago | parent [-]

You’ve turned that on; it’s off by default for good reasons: https://github.com/swiftlang/swift-format/blob/02c5a88a32719...

willtemperley 2 hours ago | parent [-]

That's the standard for swiftlang CI which is what I use.