Added column headings

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2077 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Tom Copeland
2003-07-09 19:42:02 +00:00
parent b1dccf5853
commit 093fa46401

View File

@ -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();