pmd/pmd — pull request #4 by ryan-gustafson (2012-08-15 10:54:13+00:00)
Title: Add ecmascript AvoidTrailingComma rule

It's been a while, but I think I modified all the proper locations. This is a fairly straight forward new rule. Unfortunately the Rhino ObjectLiteral and ArrayLiteral AST is not directly annotated with this information, but you can get Rhino to report problems and infer to which AST node the problem corresponds.