Skip to content

RequiresTypeResolution and Configuration annotations questions #4744

Answered by marschwar
Whathecode asked this question in Q&A
Discussion options

You must be logged in to vote
1. Do the `RequiresTypeResolution` and `Configuration` annotations serve a purpose for custom rules, or only for the default detekt rules?

No, they do not. At least not at the moment. Both annotations are int the internal package and as such not meant to be used outside of detekt.

2. Are these annotations taken into account when placed on abstract class base rules?

I do not believe they are. Both are (at the moment) exclusively used auto generate the rule documentation.

3. If the [default recommended behavior for rules using type resolution is not to run](https://detekt.dev/type-resolution.html#writing-a-rule-that-uses-type-resolution), then what purpose does `RequiresTypeResolutio…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@BraisGabin
Comment options

Answer selected by BraisGabin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants