https://kotlinlang.org logo
Title
m

Mohamed Ibrahim

08/14/2022, 8:34 AM
Hello, if I want to write a custom lint rule to ban calling function
states.accept()
and states is a
BehaviorRelay
, in all classes that extends
BaseViewModel
, how can I achieve something like this. I’ve written a the check using
visitMethodCall
but this only can check the function name and if it’s member of
BehaviorRelay
, the missing part is how to check if this function is being called in children’s of
BaseViewModel