Skip to content

Commit

Permalink
output the rule severity in pretty print
Browse files Browse the repository at this point in the history
  • Loading branch information
becojo committed Apr 12, 2024
1 parent 61c49b2 commit 9234731
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions formatters/pretty/pretty.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ func printFindingsPerRule(out io.Writer, results map[string][]opa.Finding, rules
table.SetHeader([]string{"Repository", "Details", "URL"})

fmt.Fprintf(out, "Rule: %s\n", rules[ruleId].Title)
fmt.Fprintf(out, "Severity: %s\n", rules[ruleId].Level)
fmt.Fprintf(out, "Description: %s\n", rules[ruleId].Description)
fmt.Fprintf(out, "Documentation: https://github.com/boostsecurityio/poutine/blob/main/docs/content/en/rules/%s.md\n\n", ruleId)

Expand Down

0 comments on commit 9234731

Please sign in to comment.