In Sonar, we have such a rule to check if the code changes ever invoke/use any deprecated APIs(method, class or interface). It is called " “@Deprecated” code should not be used"
We would like to write a rule, to check the legacy code ever use deprecated APIs. If the legacy does, then the SonarQube give warning message to notify developers. We believe that, combined with the previous existing rule, these two rules will work as a double insurance to the code quality of our project.
My question is:
Is this rule already implemented in Sonar?
If it’s not the case, is it feasible and reasonable to implement such a rule?
Thank you a lot for your suggestion