1 package net.sourceforge.pmd.renderers; 2 3 import java.io.IOException ; 4 import java.io.Writer ; 5 6 import net.sourceforge.pmd.Report; 7 import net.sourceforge.pmd.dfa.report.ReportHTMLPrintVisitor; 8 import net.sourceforge.pmd.dfa.report.ReportTree; 9 10 public class YAHTMLRenderer extends AbstractRenderer { 11 12 public void render(Writer writer, Report report) throws IOException { 13 ReportTree tree = report.getViolationTree(); 14 tree.getRootNode().accept(new ReportHTMLPrintVisitor()); 15 writer.write("<h3 align=\"center\">The HTML files are created above the project directory.</h3>"); 16 } 17 18 } 19 | Popular Tags |