Minor edits to `unhandled_throwing_task` changelog entry
And rule description.
This commit is contained in:
parent
8822d40687
commit
fa32fbc4f0
|
@ -83,8 +83,8 @@
|
|||
* Add new `unhandled_throwing_task` rule that triggers when a Task with an
|
||||
implicit error type has unhandled trys or errors thrown inside its body.
|
||||
This results in errors being silently discarded, which may be unexpected.
|
||||
See this forum thread for more details: https://forums.swift.org/t/56066
|
||||
[kylebshr](https://github.com/kylebshr)
|
||||
[#4958](https://github.com/realm/SwiftLint/pull/4958)
|
||||
|
||||
#### Bug Fixes
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ struct UnhandledThrowingTaskRule: ConfigurationProviderRule, SwiftSyntaxRule {
|
|||
Errors thrown inside this task are not handled, which may be unexpected. \
|
||||
Handle errors inside the task, or use `try await` to access the Tasks value and handle errors. \
|
||||
See this forum thread for more details: \
|
||||
https://forums.swift.org/t/task-initializer-with-throwing-closure-swallows-error/56066)
|
||||
https://forums.swift.org/t/task-initializer-with-throwing-closure-swallows-error/56066
|
||||
""",
|
||||
kind: .lint,
|
||||
nonTriggeringExamples: [
|
||||
|
|
Loading…
Reference in New Issue