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?

0
2 comments

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.

0
Avatar
Permanently deleted user

Thanks Olga, I'll take a look and try to develop a custom rule. 

Will post here if I find a solution to this.

0

Please sign in to leave a comment.