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

Texas Tech University Center Goes Digital and Reduces Print Budget by 80 Percent

CCFCS curriculum materials hosted by Tizra are winning raves from teachers. After 44 years of empowering teachers with print materials that were aligned with key instructional goals, Texas Tech Curriculum Center for Family and Consumer Sciences (CCFCS) made the bold decision to go 100 percent digital using the Tizra digital publishing platform. At first, the task seemed daunting.  “We printed out a copy of each of the curricula and some of them were four inches thick,” says center director Patti Rambo.  In addition to a massive quantity of materials for its 33 courses with 300-350 teaching strategies per course, the school also needed to meet aggressive revenue goals and appeal to a diverse customer base. The Center’s search for solutions was exhaustive until they were directed to Tizra. “Tizra is flexible enough for us to make up the rules as we go along,” said Rambo. “We were able to design our pages so there’s less scrolling, and we were able to color code the courses

Case Study: ARL Walks the Walk on Accessible Content

The Association of Research Libraries (ARL) provides leadership in public and information policy to 125 research and academic libraries in the U.S. and Canada. A few years ago, in an effort to increase community engagement and reduce costs, ARL made the move from print to digital publications using the Tizra platform. "Our goal was not just to go e-only, but to get there with enhanced functionality," said Publications Program Officer Lee Anne George. When evaluating digital publishing platforms, ARL had some critical requirements including: Support for existing publication formats A full e-commerce platform supporting both free and paid content, as well as password- and IP-authenticated access for individual users or entire organizations Mobile responsive design support Full-text searching including relevancy ranking and linking to specific pages in search and social sharing Support for ARL's digital accessibility mandates After extensive testing, incl

Webinar Sneak Preview: Strategic SEO - Increasing Your Organization's Visibility

Q+A with SEO expert Pam Long of True Digital We caught up with Pam Long and asked her to answer just a few SEO-related questions in advance of her upcoming webinar - Strategic SEO: Increasing Your Organization's Visibility . In this session, Pam will focus on the SEO challenges faced by association and mission-based publishers and organizations, and the Q+A below is just a small taste of the information she has to share, and she'll be taking your questions throughout the webinar! To register for this free webinar which takes place on Thursday, October 12 from 1pm ET - 2pm ET, click here . 1. What's the biggest SEO challenge facing association/mission-based publishers? You need to face the reality that there are organizations out there that have been generating content with the intent of being found far longer than many associations have had digital content available at all. You’re competing against the likes of Google Books and Amazon, who are very, very good