gabrielfv
09/16/2020, 11:22 PMType?.extForNullable()
I want to identify in a rule if this method is called, and not a version of it exclusive for a non-null instance of Type
, or a more specialized version of it, like SpecificType?.extForNullable()
, even if SpecificType : Type
.
I’m trying to visit dot-qualified expressions, since if I go for a safe expression I’m not calling a nullable version any way, but idk how to follow from heregammax
09/17/2020, 4:15 PMForbiddenMethodCall
could be a good starting point: https://github.com/detekt/detekt/blob/master/detekt-rules-style/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/style/ForbiddenMethodCall.kt 🤔