Closed miguel-jimenez-0529 closed 3 weeks ago
cc: @calda
Attention: Patch coverage is 97.56098%
with 1 line
in your changes missing coverage. Please review.
Project coverage is 95.17%. Comparing base (
56723db
) to head (8b28de6
).
Files | Patch % | Lines |
---|---|---|
Sources/Rules.swift | 96.42% | 1 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
This PR adds a new
redundantTypedThrows
rule, which removes a typed throws (introduced in Swift 6.0) if it is redundant.For example:
We don't remove
(Error)
because we can't guarantee it will reference theSwift.Error
protocol (it's relatively common to define a custom error likeenum Error: Swift.Error { ... }
).