Unused Declaration inspection targeting a specific class
已回答
Hello,
I'd like to create a custom inspection rule to verify that a given class is used in a specific class.
E.g., I create class A and I want to raise an error if it's not being used in class B
Is there any way I can achieve this?
请先登录再写评论。
Hello,
Unfortunately there is no ready tool to perform such kind of analysis. You may develop the plugin that would cover such kind of case.
Thanks Olga, I'll take a look and try to develop a custom rule.
Will post here if I find a solution to this.