Skip to content

Commit

Permalink
Improve description
Browse files Browse the repository at this point in the history
  • Loading branch information
BraisGabin committed Oct 7, 2022
1 parent 2cbc665 commit bb84d73
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -23,16 +23,16 @@ 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
class ViolateTypeResolutionRequirements(config: Config = Config.empty) : Rule(config) {
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
)

Expand Down

0 comments on commit bb84d73

Please sign in to comment.