Skip to content

Commit

Permalink
fix over-indenting in diff mode (#568)
Browse files Browse the repository at this point in the history
Co-authored-by: Evan Gibler <[email protected]>
  • Loading branch information
tstromberg and egibs authored Nov 3, 2024
1 parent 9cedac6 commit 41cb1a7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/render/terminal.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,6 @@ func renderFileSummary(_ context.Context, fr *malcontent.FileReport, w io.Writer
}

// behavior readout per namespace
indent += " "
for _, b := range bs {
_, rest := splitRuleID(b.ID)

Expand All @@ -300,7 +299,7 @@ func renderFileSummary(_ context.Context, fr *malcontent.FileReport, w io.Writer
}
}

prefix := "│"
prefix := "│ "
bullet := riskEmoji(b.RiskScore)
content := fmt.Sprintf("%s%s %s %s", prefix, indent, riskColor(b.RiskLevel, bullet+" "+rest), desc)
pc := color.New()
Expand Down

0 comments on commit 41cb1a7

Please sign in to comment.