func printProfile(settings *checks.CoverageSettings, profile checks.CoverageProfile, indent string) bool {
	out, err := checks.ProcessProfile(profile, settings)
	if indent != "" {
		tmp := ""
		for _, line := range strings.SplitAfter(out, "\n") {
			if len(line) > 1 {
				tmp += indent + line
			} else {
				tmp += line
			}
		}
		out = tmp
	}
	fmt.Printf("%s", out)
	if err != nil {
		return false
	}
	return true
}
printProfile prints the results to stdout and returns false if the process
exit code must be 1.
package main
import (
	"errors"
	"flag"
	"fmt"
	"io/ioutil"
	"log"
	"os"
	"strings"
	"github.com/maruel/pre-commit-go/checks"
	"github.com/maruel/pre-commit-go/scm"
)
var errSilent = errors.New("silent error")