I am developing a basic rule for java : Avoid the use of useless variables
After analysis, it seems that the class sonar ImmediatelyReturnedVariableCheck.java is part of my rules, but this class is not in the accessible api.
So here is my question: is there a way to call this class in my plugin or do I have to redevelop it?
Hi @nicodavdavidson,
If you don’t want that your custom plugin stops working/compiling each time we release a new java analyzer version, you should only use accessible API.
The only solution for you is to:
Duplicate the code that you see in ImmediatelyReturnedVariableCheck
Or better: contribute with us to improve ImmediatelyReturnedVariableCheck so it fits your need