Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

No it will not.


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?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: