Skip to content

Commit

Permalink
ReturnCount: Make configuration parameter more explicit (#5062)
Browse files Browse the repository at this point in the history
* Make configuration parameter more explicit

* Update ReturnCount.kt
  • Loading branch information
TWiStErRob committed Jul 11, 2022
1 parent 1b330e9 commit d017c47
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -59,7 +59,7 @@ class ReturnCount(config: Config = Config.empty) : Rule(config) {
@Configuration("define the maximum number of return statements allowed per function")
private val max: Int by config(2)

@Configuration("define functions to be ignored by this check")
@Configuration("define a free-form comma separated list of function names to be ignored by this check")
private val excludedFunctions: SplitPattern by config("equals") { SplitPattern(it) }

@Configuration("if labeled return statements should be ignored")
Expand Down

0 comments on commit d017c47

Please sign in to comment.