Skip to content

Commit 02c60d0

Browse files
Show issue description in human output when --verbose is set
- Print issue.Description in gray between the title and location lines - Only shown when -v/--verbose flag is passed and description is non-empty
1 parent 3b1ccbb commit 02c60d0

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

command/issues/issues.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,9 @@ func (opts *IssuesOptions) outputHuman() error {
522522

523523
sevTag := colorSeverity(issue.IssueSeverity, "["+severity+"]")
524524
fmt.Printf(" %s [%s] %s\n", issue.IssueText, analyzer, sevTag)
525+
if opts.Verbose && issue.Description != "" {
526+
fmt.Printf(" %s\n", pterm.Gray(issue.Description))
527+
}
525528
fmt.Printf(" %s\n", pterm.Gray(location))
526529
if i < len(group)-1 {
527530
fmt.Println()

0 commit comments

Comments
 (0)