Skip to content

Commit

Permalink
Attach analyzer report when verbosity > 0.
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Ortel <[email protected]>
  • Loading branch information
jortel committed Jul 10, 2024
1 parent 7071474 commit 62be031
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions cmd/analyzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,17 @@ func (r *Analyzer) Run() (b *builder.Issues, err error) {
}
b = &builder.Issues{Path: output}
err = cmd.Run()
if err != nil {
return
}
if Verbosity > 0 {
f, pErr := addon.File.Post(output)
if pErr != nil {
err = pErr
return
}
addon.Attach(f)
}
return
}

Expand Down

0 comments on commit 62be031

Please sign in to comment.