We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8f67e73 + 3bad322 commit 206708cCopy full SHA for 206708c
main.go
@@ -66,7 +66,7 @@ func main() {
66
}
67
_, fail := runner.Results.PassFail()
68
if fail > 0 {
69
- fmt.Printf("%d issues to fix\n", fail)
+ fmt.Printf("%d commits to fix\n", fail)
70
os.Exit(1)
71
72
validate/runner.go
@@ -77,6 +77,13 @@ func (r *Runner) Run() error {
77
r.Results = append(r.Results, vr...)
78
_, fail := vr.PassFail()
79
if os.Getenv("QUIET") != "" {
80
+ if fail != 0 {
81
+ for _, res := range vr {
82
+ if !res.Pass {
83
+ fmt.Printf(" %s - FAIL - %s\n", commit["abbreviated_commit"], res.Msg)
84
+ }
85
86
87
// everything else in the loop is printing output.
88
// If we're quiet, then just continue
89
continue
0 commit comments