Skip to content

Commit

Permalink
fix: clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
elsapet committed Nov 28, 2022
1 parent 1084400 commit e40fef3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/report/output/output.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func ReportPolicies(report types.Report, output *zerolog.Event, config settings.

reportStr := &strings.Builder{}
reportStr.WriteString("\n\nPolicy Report\n")
reportStr.WriteString("\n=============\n")
reportStr.WriteString("\n=====================================")

writePolicyListToString(reportStr, config.Policies)

Expand Down Expand Up @@ -214,6 +214,8 @@ func writeSummaryToString(
if len(breachedPolicies[settings.LevelLow]) > 0 {
reportStr.WriteString(" (" + strings.Join(maps.Keys(breachedPolicies[settings.LevelLow]), ", ") + ")")
}

reportStr.WriteString("\n\n")
}

func writePolicyBreachToString(reportStr *strings.Builder, policyBreach policies.PolicyResult, policySeverity string) {
Expand Down

0 comments on commit e40fef3

Please sign in to comment.