Hello eveybody, I have something like ```abstract ...
# detekt
m
Hello eveybody, I have something like
Copy code
abstract ASupertype<Parameter : Any, Result : Any>

abstract class TypeThatShouldReport : ASupertype<ParameterType1<Unit>, AResultType>()
I want to write a detekt rule that checks that subclass of
ASupertype
are not passing types with generics for
Parameter
and
Result
. In the case above the rule should report because
AParameterType<Unit>
is generic. This instead should not report
Copy code
abstract class TypeThatShouldNotReport : ASupertype<ParameterType2, AResultType>()
I tried using
klass.superTypeListEntries
but then I'm stuck on how to resolve and check if a generic type is passed to the superclass. Thanks!