Minor edits to `unhandled_throwing_task` changelog entry

And rule description.
This commit is contained in:
JP Simard 2023-05-10 14:04:42 -04:00
parent 8822d40687
commit fa32fbc4f0
No known key found for this signature in database
GPG Key ID: 184C3F2916202C58
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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: [