Add diagnostic counts to run receipts
This commit is contained in:
@@ -513,8 +513,8 @@ func runPipelineCommand(args []string, stdout, stderr io.Writer, opts Options) i
|
||||
fmt.Fprintf(stdout, "debug=%s\n", debugPath)
|
||||
}
|
||||
}
|
||||
if warningCount := warningGroupCount(output.Diagnostics); warningCount > 0 {
|
||||
fmt.Fprintf(stderr, "notarius: run completed with %d warning(s)\n", warningCount)
|
||||
if warningGroups := warningGroupCount(output.Diagnostics); warningGroups > 0 {
|
||||
fmt.Fprintf(stderr, "notarius: run completed with %d warning group(s), %d occurrence(s); details=%s\n", warningGroups, warningOccurrenceCount(output.Diagnostics), filepath.Join(runOutputDir, "warnings.json"))
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user