From bc2d93b8a412a23cc006f7836ea340291af6a1db Mon Sep 17 00:00:00 2001 From: Jeremy Rans Date: Sat, 15 Dec 2018 01:40:09 -0600 Subject: [PATCH] minor cli output tweak --- goreportcard-cli/cli.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/goreportcard-cli/cli.go b/goreportcard-cli/cli.go index 1567d75..6f5cf60 100644 --- a/goreportcard-cli/cli.go +++ b/goreportcard-cli/cli.go @@ -28,11 +28,11 @@ func main() { fmt.Printf("%s: %d%%\n", c.Name, int64(c.Percentage*100)) if *verbose && len(c.FileSummaries) > 0 { for _, f := range c.FileSummaries { + fmt.Printf("\t%s\n", f.Filename) for _, e := range f.Errors { - fmt.Printf("%s\t%s:%d\n\t%s\n", c.Name, f.Filename, e.LineNumber, e.ErrorString) + fmt.Printf("\t\tLine %d: %s\n", e.LineNumber, e.ErrorString) } } - fmt.Println() } } }