Y
Hacker News
new
|
ask
|
show
|
jobs
by
novok
2460 days ago
You fix that by banning force unwraps outside of something like unit tests with a linter. We do it at work and I can't remember it ever being an issue.
1 comments
yawaramin
2460 days ago
Great idea. Can you enforce it in PR checks?
link
angott
2460 days ago
Yes, at work we added swiftlint as part of our build pipeline, and we have it reject any usage of force unwraps.
link