You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
False positive triggers for async_without_await, unneeded_throws_rethrows with override functions #6416
The following code produces B as output, but when the rule is enabled, it suggests to replace to:
class B: A {
func test() {
print("B")
}
}
as a result, the output will be A, because it doesn't override the original function. So the rule breaks the logic.
The same happens for throws in unneeded_throws_rethrows rule.
I would suggest excluding the warning for functions that have override
For throws that's not a problem. Overriding function can omit the throws if the function doesn't actually throw. But you're right for async. It cannot be left out.
Activity
SimplyDanny commentedon Jan 6, 2026
For
throwsthat's not a problem. Overriding function can omit thethrowsif the function doesn't actually throw. But you're right forasync. It cannot be left out.