If the Ecmascript source code contains "void(0)", PMD is unable to build the tree. It just ignores that file and it prints "Error while processing" in the report.
Example,
Ecmascript source code has the following,
(matchFn)?(matcharray = eval(matchFn+"('"+fieldval+"','"+n.id+"')")):void(0);
Discussion: Unable to generate the tree for Ecmascript when I use void(0)