[core] PMD stops processing file completely, if one rule in a rule chain fails

Fixes #1300
This commit is contained in:
Andreas Dangel
2018-08-13 11:21:04 +02:00
parent 7e53729baa
commit f773581459
4 changed files with 90 additions and 0 deletions
@@ -53,6 +53,7 @@ public class XPathMetricFunctionTest {
Report report = new Report();
ctx.setReport(report);
ctx.setSourceCodeFilename("n/a");
ctx.setIgnoreExceptions(false); // for test, we want immediate exceptions thrown and not collect them
RuleSet rules = new RuleSetFactory().createSingleRuleRuleSet(rule);
p.getSourceCodeProcessor().processSourceCode(new StringReader(code), new RuleSets(rules), ctx);
return report.iterator();