slackhq / slack-lints

A collection of custom Android/Kotlin lint checks we use in our Android and Kotlin code bases at Slack.
Apache License 2.0
231 stars 13 forks source link

Add runCatching to the denylist #100

Closed stagg closed 1 year ago

stagg commented 1 year ago

Summary

Adding runCatching to the deny list as it behaves the same as a try/catch catching any throwable, potentially catching unintended exceptions. Which when used with coroutines it catches and doesn't rethrow CancellationExceptions.