This question already has an answer here:
I would like to write a rule to find all the public unused functions in a project. I have copied and amended the original UnusedPrivateMethod to work. But alas it works too good and finds ALL the public functions in the project.
It does so because public functions are usually called from other classes and the scope of the Rule seems to be at class level. So within each class the public functions are not used and so is part of the result.
Thus the question of how can I write a rule with a context that is on a project level instead of just at the class level?
</div>