https://kotlinlang.org logo
#detekt
Title
# detekt
v

vineethraj49

04/04/2021, 11:18 AM
how do I know a KDoc annotation got added? am trying 1.16.0, (pre move to
@RequiresTypeResolution
, still uses kdoc
@requiresTypeResolution
), but it doesn't seem to pick up/enable type inference for a rule how to check if kdoc annotation had been added?
1
g

gammax

04/04/2021, 11:47 AM
The KDoc annotations have no runtime impact on the rule, they are just documentation
v

vineethraj49

04/04/2021, 11:48 AM
are ya telling me an extension cannot use type inference? ;_;
whao just saw that the shift to regular annotation is also Retention:SOURCE
where exactly does this get used then?
g

gammax

04/04/2021, 12:49 PM
It gets used to generate the website
Third party rules can use type resolution. It depends on how Detekt gets invoked.
v

vineethraj49

04/04/2021, 12:57 PM
understood; figuring out the
--classpath
parameter, thanks
👌 1