diff --git a/pmd/src/net/sourceforge/pmd/renderers/CSVRenderer.java b/pmd/src/net/sourceforge/pmd/renderers/CSVRenderer.java index 9e6cc6b902..565c8be391 100644 --- a/pmd/src/net/sourceforge/pmd/renderers/CSVRenderer.java +++ b/pmd/src/net/sourceforge/pmd/renderers/CSVRenderer.java @@ -9,7 +9,12 @@ import java.util.Iterator; public class CSVRenderer implements Renderer { public String render(Report report) { - StringBuffer buf = new StringBuffer(); + StringBuffer buf = new StringBuffer(quoteAndCommify("Problem")); + buf.append(quoteAndCommify("File")); + buf.append(quoteAndCommify("Line")); + buf.append(quote("Description")); + buf.append(PMD.EOL); + int violationCount = 1; for (Iterator i = report.iterator(); i.hasNext();) { RuleViolation rv = (RuleViolation) i.next();