View Javadoc

    1   package net.sourceforge.pmd.renderers;
    2
    3   import net.sourceforge.pmd.Report;
    4   import net.sourceforge.pmd.dfa.report.ReportHTMLPrintVisitor;
    5   import net.sourceforge.pmd.dfa.report.ReportTree;
    6
    7   public class YAHTMLRenderer extends AbstractRenderer implements Renderer {
    8
    9       public String render(Report report) {
    10          ReportTree tree = report.getViolationTree();
    11          tree.getRootNode().accept(new ReportHTMLPrintVisitor());
    12          return "<h3 align=\"center\">The HTML files are created above the project directory.</h3>";
    13      }
    14
    15  }