Unused Declaration inspection targeting a specific class
Answered
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?
Please sign in to leave a comment.
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.