Skip to main content

PMD static Java code analysis tool

How many times have you, in your developer life, smacked our head and screamed "that was sooo obvious!" upon discovering a bug ? And how many times those were pretty simple bugs that could have been caught just by looking closely at the code and finding a silly mistake ? I'm guessing too many times.... :-) PMD, no real meaning to the acronym (see here), is a pretty handy tool that if used with some frequency can help you at least save your head from the smacking. PMD is a Java code analysis tool that draws from an experience-driven rule set to look into your code and flag possible mistakes. From unused imports to the always error prone braceless if statement, PMD can give you a pretty good coverage of what you can do to improve your code and reduce the probability of making a silly mistake. PMD can be run from within your ant or maven build file should you want to make running it part of your build process. You can find plugins for most of the popular IDEs to make it even simpler to run it and enhance your code. PMD is extensible letting you add your rules should you wish to enforce any kind of rule to your project. Finally, PMD is open sourced, licensed under a BSD-style license and available at sourceforge. All in all a pretty cool and valuable tool to improve your development process and maybe keep your development team a bit saner.

Comments

Popular posts from this blog

Using XML to Create a Better Online Reading Experience for the American Payroll Association

Congrats to the American Payroll Association on their recent launch of XML-based publications on Tizra!  Thanks to this collaboration, APA's authoritative books for payroll professionals are now available in crisp, reflowable HTML, creating a user experience that feels like a truly digital native product, rather than a conversion from print. XML-based publishing also creates a better mobile reading experience, supports more precise search and navigation, and opens the door to better accessibility for users with low vision and other disabilities. Our partners at  Scribe  did a great job supporting APA through the process of producing the XML for loading into Tizra, and we’d definitely recommend them to anyone interested in such a transition. It’s hard to overstate what a big step forward this is for Tizra as a platform and a company. XML has long been planned for in the product's architecture, but now for the first time, we have a working example that demonstrates t...

Tools of Change 2013

Tizra is thrilled to once again be exhibiting at the Tools of Change for Publishers Conference, February 12-14, 2013.  Please  visit us at booth TT 7 . Also, feel free to take advantage of our exhibitor discount, by  registering  with this Discount Code:  TIZRA25. ToC has always been a great event for Tizra. We were there the first time the event was held in 2007.  And just a couple of months ago, we were recognized by conference chair Joe Wikert as a tool that empowers publishers to reach readers directly. We love being surrounded by incredibly smart people who share our passion for the world of digital publishing. And what a world it's become! The population of e-book readers is growing. In the past year, the number of those who read e-books increased from 16% to 23% . And this move toward e-book reading coincides with an increase in ownership of tablets and other electronic book reading devices, growing from 18% to 33% . Digital publishing ...

Duke University Press signs an agreement with Tizra

A brief moment for a minor bit of boosterism. Duke University Press has come on board with Tizra as a charter customer, something we’re excited about for a couple of reasons. We're seeing how the emergence of long tail sales strategies is beginning to transform book publishers’ business models. The Duke books program, with its combination of long-lived scholarly and trade content, is particularly well-suited to a long tail sales strategy. We are also really delighted at the prospect of working with such a smart and forward-looking publisher.