A Comparison of Bug-Finding Tools

Software Engineering has shown us that it is much cheaper to find errors in code as early as possible, and that found early, they are much easier to fix [4]. This has led to the development of many compile-time tools for finding bugs early. This paper compares some of the tools provided on sourceforge.net. Student projects were tested with each of the tools to see if the tool was helpful. Of the tools discussed, PMD was the most powerful. It allows the creation of custom code rules. PMD also allows the code to be checked for duplicate code. Student projects from CS 301, Fall 2005, were tested with PMD and analyzed for duplicate code, and trends were scrutinized. PMD found many bugs in the code, showing its usefulness.