Skip to content

Commit

Permalink
cflint#323 Refactoring summary object to be named counts to match CFL…
Browse files Browse the repository at this point in the history
…int XML
  • Loading branch information
TheRealAgentK committed Jul 28, 2017
1 parent 5b41ab2 commit e5f53ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/com/cflint/JSONOutput.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ public void output(final BugList bugList, final Writer writer, CFLintStats stats
// end issues array
jg.writeEndArray();

// start summary object
jg.writeFieldName("summary");
// start counts object
jg.writeFieldName("counts");
jg.writeStartObject();
jg.writeNumberField("totalFiles", stats.getFileCount());
// totalLines has to be separated into writing the field name and the number - .writeNumberField() can't deal with BigInt
Expand Down Expand Up @@ -114,7 +114,7 @@ public void output(final BugList bugList, final Writer writer, CFLintStats stats
}
// end countBySeverity array
jg.writeEndArray();
// end summary object
// end counts object
jg.writeEndObject();

// end global object
Expand Down

0 comments on commit e5f53ed

Please sign in to comment.