Skip to content

Commit

Permalink
feat: violation state audited/unaudited by state
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Setch <[email protected]>
  • Loading branch information
setchy committed Apr 13, 2024
1 parent 8c898ca commit 2eb8b7e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ public String generateViolations(ProjectMetrics metrics) {
if (metrics == null) {
return writeSvg(PROJECT_VIOLATIONS_NO_METRICS_TEMPLATE, context);
} else if (metrics.getPolicyViolationsTotal() > 0) {
context.put("fail", String.valueOf(metrics.getPolicyViolationsFailTotal()));
context.put("warn", String.valueOf(metrics.getPolicyViolationsWarnTotal()));
context.put("info", String.valueOf(metrics.getPolicyViolationsInfoTotal()));
context.put("fail", String.valueOf(metrics.getPolicyViolationsFail()));
context.put("warn", String.valueOf(metrics.getPolicyViolationsWarn()));
context.put("info", String.valueOf(metrics.getPolicyViolationsInfo()));
return writeSvg(PROJECT_VIOLATIONS_TEMPLATE, context);
} else {
return writeSvg(PROJECT_VIOLATIONS_NONE_TEMPLATE, context);
Expand Down

0 comments on commit 2eb8b7e

Please sign in to comment.