I am looking out for an eclipse plug-in that could be used to detect unused methods or classes across a project. Does any one know a efficient good to use plug-in of that kind?
相关问题
- Eclipse and Mylyn : how to disable grey files in t
- Installing Pydev for Eclipse throws error
- Error in Scala Compiler: java.lang.AssertionError:
- How to remove unused imports using Eclipse and not
- Assume/switch role in aws toolkit for eclipse 2.0
相关文章
- selenium+eclipse 打开网页时报错
- Eclipse failing to open
- Eclipse how can I indent C++ preprocessor macros
- Why is FindBugs ignoring my check for null?
- Eclipse cleanup - what are the “.index” files - ca
- Eclipse plugin to find out unused methods in a cla
- Spring NamespaceHandler issue when launching Maven
- How best to use ViewerFilter on a TreeViewer?
Something like EclEmma (http://www.eclemma.org/) might be what you're looking for. It shows code coverage for packages, classes, methods and individual lines.
Some lines will never get 100% coverage (e.g. Enums) but it will give you a good idea about what's being used.
Of course, any of those tools can NOT deterministically find unused code (see the Halting Problem). Any code could eventually be called, through various means like Reflection.
But those static analysis tools can help.
For additional hints, a good test coverage is still required (dynamic analysis).