Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

7. Static Analysis > Generate Metrics with Panopticode

Generate Metrics with Panopticode

The subject of metrics is beyond the scope of this book, but being productive about generating metrics is fair game. For static languages (like Java and C#), I’m a big fan of continuous metrics-gathering to make sure that problem resolution can happen as quickly as possible. Typically, that means that I have a set of metrics tools (including FindBugs and PMD/CPD) that I want to run as part of continuous integration.

It’s a hassle having to wire up all that stuff for every project. As with Buildix (see Don’t Reinvent Wheels” in Chapter 4), I’d like to have all the infrastructure preconfigured. That’s where Panopticode shines.

One of my colleagues (Julias Shaw) had the same problem, but instead of just complaining about it (like me), he fixed it. Panopticode[39] is an open source project with lots of common metrics tools preconfigured. The essence of Panopticode consists of an Ant build file with lots of open source projects and their JAR files preconfigured. You supply your source path, your library path (in other words, all the JAR files you need to build your project), and your test directory, then run Panopticode’s build file. It does the rest.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint