From bb84d73734fa5e34f30aa215a2beaa719e4b254d Mon Sep 17 00:00:00 2001 From: Brais Date: Fri, 7 Oct 2022 11:21:41 +0200 Subject: [PATCH] Improve description --- .../detekt/authors/ViolateTypeResolutionRequirements.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/detekt-rules-ruleauthors/src/main/kotlin/io/gitlab/arturbosch/detekt/authors/ViolateTypeResolutionRequirements.kt b/detekt-rules-ruleauthors/src/main/kotlin/io/gitlab/arturbosch/detekt/authors/ViolateTypeResolutionRequirements.kt index 4bbba6f8d03..92f67a5c9ad 100644 --- a/detekt-rules-ruleauthors/src/main/kotlin/io/gitlab/arturbosch/detekt/authors/ViolateTypeResolutionRequirements.kt +++ b/detekt-rules-ruleauthors/src/main/kotlin/io/gitlab/arturbosch/detekt/authors/ViolateTypeResolutionRequirements.kt @@ -23,8 +23,8 @@ import org.jetbrains.kotlin.resolve.descriptorUtil.getAllSuperclassesWithoutAny import kotlin.reflect.KClass /** - * If a rule uses `bindingContext` should be annotated with `@RequiresTypeResolution`. And if it doesn't it shouldn't - * be annotated with it. + * If a rule uses the property [BaseRule.bindingContext] should be annotated with `@RequiresTypeResolution`. + * And if the rule doesn't use that property it shouldn't be annotated with it. */ @ActiveByDefault("1.22.0") @RequiresTypeResolution @@ -32,7 +32,7 @@ class ViolateTypeResolutionRequirements(config: Config = Config.empty) : Rule(co override val issue = Issue( javaClass.simpleName, Severity.Defect, - "`@RequiresTypeResolution` should be used if and only if `bindingContext` is used.", + "`@RequiresTypeResolution` should be used if and only if the property `bindingContext` is used.", Debt.FIVE_MINS )