From 62be031b763ed4915a0e4905777e585fedd7cee1 Mon Sep 17 00:00:00 2001 From: Jeff Ortel Date: Wed, 10 Jul 2024 08:57:47 -0700 Subject: [PATCH] Attach analyzer report when verbosity > 0. Signed-off-by: Jeff Ortel --- cmd/analyzer.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/cmd/analyzer.go b/cmd/analyzer.go index 3933d8b..ba023ca 100644 --- a/cmd/analyzer.go +++ b/cmd/analyzer.go @@ -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 }