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

Digital Einstein Papers Launches on Tizra

Launching today, THE DIGITAL EINSTEIN PAPERS is a publicly available website of the collected and translated papers of Albert Einstein that allows readers to explore the writings of the world’s most famous scientist as never before. FOR IMMEDIATE RELEASE [ PDF Version ] Princeton, NJ – December 5, 2014 – Princeton University Press, in partnership with Tizra, Hebrew University of Jerusalem, and California Institute of Technology, announces the launch of THE DIGITAL EINSTEIN PAPERS ( http://einsteinpapers.press.princeton.edu ). This unique, authoritative resource provides full public access to the translated and annotated writings of the most influential scientist of the twentieth century: Albert Einstein. “Princeton University Press has a long history of publishing books by and about Albert Einstein, including the incredible work found in The Collected Papers of Albert Einstein,” said Peter Dougherty, director of Princeton University Press. “We are delighted to make these t

Our Superficial Review of Surface: It Works with Tizra!

The new Microsoft Surface tablet was on the doorstep at Tizra HQ this morning, and we took a little time to run it through some basic tests.  Overall, our feeling was in line with the reviews: Nice hardware, and potentially attractive for those looking for a more mobile way to use MS Office.  Still a ways to go on software, though. We tried the Windows RT version of Internet Explorer 10 on a few Tizra sites, and overall they worked as expected, though interactions with the new reading interface we've just developed (more on this soon) were sluggish.  Part of it may be incompatibility with some underlying scripts, which will be tuned as IE 10 becomes more of a factor.  Part of it was probably just our unfamiliarity with new Metro interface. So for now, our minds are open on Surface as a device, but more importantly, we're thrilled to see another major player striving mightily to develop better ways for users to interact with the great content our customers deliver through

Tizra is at the 2012 Frankfurt Book Fair

Tizra is in Germany!  On Tuesday, October 9th, we are at the Tools of Change Frankfurt Conference.   For the rest of the week -- Wednesday, October 10th through Sunday, October 14th -- you can find us at the Frankfurt Book Fair , at the American Collective Stand - Hall 8.0 S949 .   If you are also in Frankfurt, we'd love to connect!  Please email or call us at +1 401-400-2989 and we'll happily set up some time. Hope to see you there. Entrance to the Frankfurt Book Fair "Festhalle."