I know about Sonar but I’d rather not (actually, can’t) run a whole web app that says it likes 500Mb of ram just to run some reports on a build. I’ve already got Checkstyle, FindBugs & PMD – can I configure them for the kind of metrics I’m looking for … method length, class length, mccabe etc.? I’d also like to see (in jenkins) graphing of these over time.
Any ideas?
eclipse-cs is a checkstyle plug-in for eclipse which can report on your custom checkstyle file. This can be used to setup metric checking for method length, class length, cyclomatic complexity and much more. I always run my eclipse setup with this enabled as it gives great real-time metrics.
PMD, checkstyle and findbugs all offer trending reports in their plugins for your Hudson/Jenkins build process to see trending over time. It should be an option near the bottom of your configuration on your build.