Skip to content

Commit

Permalink
feat: enhance policy report for detailed context (#357)
Browse files Browse the repository at this point in the history
  • Loading branch information
cfabianski authored Jan 9, 2023
1 parent 795d07e commit bab0ef6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/report/output/policies/policies.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ func writePolicyFailureToString(reportStr *strings.Builder, policyFailure Policy
reportStr.WriteString(color.HiBlackString("https://curio.sh/reference/policies/#" + policyFailure.PolicyDisplayId + "\n"))
reportStr.WriteString("\n")
if policyFailure.DetailedContext != "" {
reportStr.WriteString(color.GreenString("Detected: " + policyFailure.DetailedContext + "\n"))
reportStr.WriteString("Detected: " + policyFailure.DetailedContext + "\n")
}
reportStr.WriteString(color.HiBlueString("File: " + underline(policyFailure.Filename+":"+fmt.Sprint(policyFailure.LineNumber)) + "\n"))

Expand Down

0 comments on commit bab0ef6

Please sign in to comment.