Clover coverage report - PMD - 3.3
Coverage timestamp: Thu Sep 15 2005 17:59:57 EDT
file stats: LOC: 25   Methods: 1
NCLOC: 17   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
EmacsRenderer.java 0% 0% 0% 0%
coverage
 1    /**
 2    * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
 3    */
 4    package net.sourceforge.pmd.renderers;
 5   
 6    import net.sourceforge.pmd.Report;
 7    import net.sourceforge.pmd.RuleViolation;
 8   
 9    import java.util.Iterator;
 10   
 11    public class EmacsRenderer implements Renderer {
 12   
 13    protected String EOL = System.getProperty("line.separator", "\n");
 14   
 15  0 public String render(Report report) {
 16  0 StringBuffer buf = new StringBuffer();
 17  0 for (Iterator i = report.iterator(); i.hasNext();) {
 18  0 RuleViolation rv = (RuleViolation) i.next();
 19  0 buf.append(EOL).append(rv.getFilename());
 20  0 buf.append(":").append(Integer.toString(rv.getLine()));
 21  0 buf.append(": ").append(rv.getDescription());
 22    }
 23  0 return buf.toString();
 24    }
 25    }