Closed
Description
This is an opinionated rule, so it should be opt-in.
But a rule that enforces return.
Based in this discussion I think it could be a nice fit.
Triggers
func foo() -> String {
"bar"
}
func foo: String {
"bar"
}
Non-triggers
func foo() -> String {
return "bar"
}
func foo() -> Void {
someApiCall()
}
func foo() {
someApiCall()
}
func foo: String {
return "bar"
}
Metadata
Metadata
Assignees
Labels
No labels