summaryrefslogtreecommitdiff
path: root/pkgtools/pkglint/files/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkgtools/pkglint/files/main.go')
-rw-r--r--pkgtools/pkglint/files/main.go18
1 files changed, 9 insertions, 9 deletions
diff --git a/pkgtools/pkglint/files/main.go b/pkgtools/pkglint/files/main.go
index 5c5768af71a..9d39e47f869 100644
--- a/pkgtools/pkglint/files/main.go
+++ b/pkgtools/pkglint/files/main.go
@@ -164,17 +164,17 @@ func (pkglint *Pkglint) PrintSummary() {
fmt.Fprintf(G.logOut, "%d %s and %d %s found.\n",
G.errors, ifelseStr(G.errors == 1, "error", "errors"),
G.warnings, ifelseStr(G.warnings == 1, "warning", "warnings"))
- if G.explanationsAvailable && !G.opts.Explain {
- fmt.Fprint(G.logOut, "(Run \"pkglint -e\" to show explanations.)\n")
- }
- if G.autofixAvailable && !G.opts.PrintAutofix && !G.opts.Autofix {
- fmt.Fprint(G.logOut, "(Run \"pkglint -fs\" to show what can be fixed automatically.)\n")
- }
- if G.autofixAvailable && !G.opts.Autofix {
- fmt.Fprint(G.logOut, "(Run \"pkglint -F\" to automatically fix some issues.)\n")
- }
} else {
io.WriteString(G.logOut, "looks fine.\n")
}
+ if G.explanationsAvailable && !G.opts.Explain {
+ fmt.Fprint(G.logOut, "(Run \"pkglint -e\" to show explanations.)\n")
+ }
+ if G.autofixAvailable && !G.opts.PrintAutofix && !G.opts.Autofix {
+ fmt.Fprint(G.logOut, "(Run \"pkglint -fs\" to show what can be fixed automatically.)\n")
+ }
+ if G.autofixAvailable && !G.opts.Autofix {
+ fmt.Fprint(G.logOut, "(Run \"pkglint -F\" to automatically fix some issues.)\n")
+ }
}
}