Hacker News new | ask | show | jobs
by saagarjha 165 days ago
No it will not.
1 comments

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'

You’ve turned that on; it’s off by default for good reasons: https://github.com/swiftlang/swift-format/blob/02c5a88a32719...
That's the standard for swiftlang CI which is what I use.
I don’t think it is?