mirror of
https://github.com/ossf/scorecard.git
synced 2024-09-17 11:57:12 +03:00
Fix - output message for non default output (#167)
The json output had non-json output. Fixed it output only for default output.
This commit is contained in:
parent
cb7ee064b9
commit
c77e995ae5
@ -105,7 +105,10 @@ var rootCmd = &cobra.Command{
|
||||
enabledChecks = checks.AllChecks
|
||||
}
|
||||
for _, c := range enabledChecks {
|
||||
fmt.Fprintf(os.Stderr, "Starting [%s]\n", c.Name)
|
||||
if format == formatDefault {
|
||||
fmt.Fprintf(os.Stderr, "Starting [%s]\n", c.Name)
|
||||
|
||||
}
|
||||
}
|
||||
ctx := context.Background()
|
||||
|
||||
@ -113,7 +116,9 @@ var rootCmd = &cobra.Command{
|
||||
// Collect results
|
||||
results := []pkg.Result{}
|
||||
for result := range resultsCh {
|
||||
fmt.Fprintf(os.Stderr, "Finished [%s]\n", result.Name)
|
||||
if format == formatDefault {
|
||||
fmt.Fprintf(os.Stderr, "Finished [%s]\n", result.Name)
|
||||
}
|
||||
results = append(results, result)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user