I would like to write a rule to find all public unused functions in a project. I copied and fixed the original UnusedPrivateMethod to work. But, alas, it works too well and finds ALL public functions in the project.
It does this because public functions are usually called from other classes, and the scope of the Rule seems to be at the class level. Thus, in each class public functions are not used and therefore are part of the result.
So the question is how to write a rule with a context that is at the project level, and not just at the class level?
source share