Skip to content

Commit

Permalink
Update detekt-rules-style/src/main/kotlin/io/gitlab/arturbosch/detekt…
Browse files Browse the repository at this point in the history
…/rules/style/ForbiddenMethodCall.kt

Co-authored-by: schalkms <30376729+schalkms@users.noreply.github.com>
  • Loading branch information
BraisGabin and schalkms committed Jul 21, 2022
1 parent faca719 commit 3eeb980
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class ForbiddenMethodCall(config: Config = Config.empty) : Rule(config) {
val message = if (forbidden.reason != null) {
"The method `${forbidden.value}` has been forbidden: ${forbidden.reason}"
} else {
"The method `${forbidden.value}` has been forbidden in the Detekt config."
"The method `${forbidden.value}` has been forbidden in the detekt config."
}
report(CodeSmell(issue, Entity.from(expression), message))
}
Expand Down

0 comments on commit 3eeb980

Please sign in to comment.