diff --git a/cmd/output.go b/cmd/output.go index 6563d0f..afbd06e 100644 --- a/cmd/output.go +++ b/cmd/output.go @@ -2,6 +2,7 @@ package cmd import ( "fmt" + "strings" "github.com/qonto/standards-insights/pkg/checker/aggregates" ) @@ -11,10 +12,18 @@ func stdoutResults(results []aggregates.ProjectResult) { fmt.Printf("== Project %s\n", project.Name) for _, result := range project.CheckResults { if result.Success { - fmt.Printf("✅ Check %s PASS (labels: %s)\n", result.Name, result.Labels) + fmt.Printf("✅ Check %s PASS\n", result.Name) + for key, value := range result.Labels { + fmt.Printf("\t%s: %s\n", key, value) + } } else { - fmt.Printf("🚨 Check %s FAILED (labels: %s)\n", result.Name, result.Labels) - fmt.Printf("🚨 %+v\n", result) + fmt.Printf("🚨 Check %s FAILED\n", result.Name) + for key, value := range result.Labels { + fmt.Printf("\t%s: %s\n", key, value) + } + for _, ruleResult := range result.Results { + fmt.Printf("\tMessage: %s\n", strings.Join(ruleResult.Messages, ",")) + } } } }