Marco Righini
07/06/2023, 9:24 AMabstract 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
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!