Skip to content

Commit

Permalink
Extend the issue description by providing the 'why'
Browse files Browse the repository at this point in the history
  • Loading branch information
mhernand40 committed Sep 25, 2020
1 parent 27dea52 commit 8cfc906
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ class SuspendFunWithFlowReturnType(config: Config) : Rule(config) {
override val issue = Issue(
id = "SuspendFunWithFlowReturnType",
severity = Severity.Minor,
description = "`suspend` modifier should not be used for functions returning Coroutines Flow",
description = "`suspend` modifier should not be used for functions returning Coroutines " +
"Flow. Flows are cold streams and invoking a function that returns one should not " +
"produce any side effects.",
debt = Debt.TEN_MINS
)

Expand Down

0 comments on commit 8cfc906

Please sign in to comment.