Skip to content

Commit 7b5ac81

Browse files
committed
Suppress text output when in --format json mode
A couple prints were not conditional, polluting the machine readable output.
1 parent 06764f5 commit 7b5ac81

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

check/check.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ import (
3333

3434
// RunChecks runs all checks for the given project and outputs the results.
3535
func RunChecks(project project.Type) {
36-
fmt.Printf("Checking %s in %s\n", project.ProjectType, project.Path)
36+
if configuration.OutputFormat() == outputformat.Text {
37+
fmt.Printf("Checking %s in %s\n", project.ProjectType, project.Path)
38+
}
3739

3840
checkdata.Initialize(project, configuration.SchemasPath())
3941

0 commit comments

Comments
 (0)