Henning Schmiedehausen c1cb3bfb5e Fix NPE with empty rulesets.
This is the fix for bug #1155 (https://sourceforge.net/p/pmd/bugs/1155/)

The whole code is in dire need of revisiting its behaviour when a
value is null or empty. Same goes for e.g. createRules whether it
should return null values (then the caller will have to deal with it)
or empty Rulesets.

Catching and discarding the rule not found exception looks pretty
suspicious.
2013-12-23 13:10:48 +01:00
2013-12-23 13:10:48 +01:00
2005-11-10 18:55:49 +00:00
2003-07-21 15:37:14 +00:00
2004-07-09 19:27:21 +00:00
2012-03-11 18:50:49 +00:00
2008-01-26 12:12:54 +00:00
2003-07-21 15:37:14 +00:00
2013-01-13 19:17:44 +01:00
2003-07-21 15:37:14 +00:00
2013-10-26 20:31:27 +02:00
2013-01-13 19:17:44 +01:00
2013-05-01 14:56:22 +02:00

PMD - Don't shoot the messenger

PMD

About

PMD is a source code analyzer. It finds common programming flaws like unused variables, empty catch blocks, unnecessary object creation, and so forth. It supports Java, JavaScript, XML, XSL. Additionally it includes CPD, the copy-paste-detector. CPD finds duplicated code in Java, C, C++, C#, PHP, Ruby, Fortran, JavaScript.

Source

Our latest source of PMD can be found on GitHub. Fork us! The current status of this repo can be seen at BuildHive.

News and Website

More information can be found on our Website and on SourceForge.

Languages
Java 75.5%
Apex 9.7%
Kotlin 9.1%
ANTLR 2.7%
PLSQL 1%
Other 1.8%