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 |
5
| public void render(Writer writer, Report report) throws IOException {
|
13 |
5
| ReportTree tree = report.getViolationTree();
|
14 |
4
| tree.getRootNode().accept(new ReportHTMLPrintVisitor());
|
15 |
4
| writer.write("<h3 align=\"center\">The HTML files are created above the project directory.</h3>");
|
16 |
| } |
17 |
| |
18 |
| } |