-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Open
Labels
repro-neededIssues that cannot be reproduced or miss proper descriptive examples.Issues that cannot be reproduced or miss proper descriptive examples.
Description
New Issue Checklist
- I've Updated SwiftLint to the latest version.
- I've searched for existing GitHub issues.
Bug Description
When opting in to a unneeded_throws_rethrows, I'm getting false positives for the following case:
protocol Throwing {
func doSomething() throws
}
struct SomeType: Throwing {
vvvv
func doSomething() throws {
^^^^
// Closure without anything thrown
print("Hello")
}
}I believe that this case where the throws declaration is enforced by the protocol conformance shouldn't trigger a positive report for this rule.
Environment
- SwiftLint 0.63.0
- Xcode 26.2 (17C52)
- Installed via Homebrew
...
opt_in_rules:
- unneeded_throws_rethrows
...Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
repro-neededIssues that cannot be reproduced or miss proper descriptive examples.Issues that cannot be reproduced or miss proper descriptive examples.