Skip to content

Commit

Permalink
internal/scan: add a newline after summary
Browse files Browse the repository at this point in the history
Otherwise, command prompt and the summary are at the same line.

Change-Id: Ic3f132d16b918e3ac37b1284c83672c2dd1fb3c8
Reviewed-on: https://go-review.googlesource.com/c/vuln/+/560377
Run-TryBot: Zvonimir Pavlinovic <zpavlinovic@google.com>
Reviewed-by: Maceo Thompson <maceothompson@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
  • Loading branch information
zpavlinovic committed Feb 5, 2024
1 parent fadf1fa commit 3b6ac80
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion internal/scan/testdata/binary.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ Vulnerability #2: GO-0000-0001
Your code is affected by 2 vulnerabilities from 1 module and the Go standard library.
This scan found no other vulnerabilities in packages you import or modules you
require.
Use -show verbose for more details.
Use -show verbose for more details.
2 changes: 1 addition & 1 deletion internal/scan/testdata/mixed-calls.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ Vulnerability #1: GO-0000-0001
Your code is affected by 1 vulnerability from 1 module.
This scan found no other vulnerabilities in packages you import or modules you
require.
Use -show verbose for more details.
Use -show verbose for more details.
2 changes: 1 addition & 1 deletion internal/scan/testdata/module-vuln.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ Vulnerability #1: GO-0000-0001

Your code may be affected by 1 vulnerability.

Use -scan=symbol for more fine grained vulnerability detection.
Use -scan=symbol for more fine grained vulnerability detection.
2 changes: 1 addition & 1 deletion internal/scan/testdata/multi-stack-modlevel.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ Vulnerability #2: GO-0000-0001

Your code may be affected by 2 vulnerabilities.

Use -scan=symbol for more fine grained vulnerability detection.
Use -scan=symbol for more fine grained vulnerability detection.
2 changes: 1 addition & 1 deletion internal/scan/testdata/multi-stacks.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ Vulnerability #1: GO-0000-0001
Your code is affected by 1 vulnerability from the Go standard library.
This scan found no other vulnerabilities in packages you import or modules you
require.
Use -show verbose for more details.
Use -show verbose for more details.
2 changes: 1 addition & 1 deletion internal/scan/testdata/package-vuln.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ Vulnerability #1: GO-0000-0001
Your code may be affected by 1 vulnerability.
This scan also found 0 vulnerabilities in modules you require.
Use -scan=symbol for more fine grained vulnerability detection and -show verbose
for more details.
for more details.
2 changes: 1 addition & 1 deletion internal/scan/testdata/platform-all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ Your code is affected by 0 vulnerabilities.
This scan also found 1 vulnerability in packages you import and 0
vulnerabilities in modules you require, but your code doesn't appear to call
these vulnerabilities.
Use -show verbose for more details.
Use -show verbose for more details.
2 changes: 1 addition & 1 deletion internal/scan/testdata/platform-one-arch-only.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ Your code is affected by 0 vulnerabilities.
This scan also found 1 vulnerability in packages you import and 0
vulnerabilities in modules you require, but your code doesn't appear to call
these vulnerabilities.
Use -show verbose for more details.
Use -show verbose for more details.
2 changes: 1 addition & 1 deletion internal/scan/testdata/platform-one-import.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ Your code is affected by 0 vulnerabilities.
This scan also found 1 vulnerability in packages you import and 0
vulnerabilities in modules you require, but your code doesn't appear to call
these vulnerabilities.
Use -show verbose for more details.
Use -show verbose for more details.
2 changes: 1 addition & 1 deletion internal/scan/testdata/platform-two-imports.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ Your code is affected by 0 vulnerabilities.
This scan also found 1 vulnerability in packages you import and 0
vulnerabilities in modules you require, but your code doesn't appear to call
these vulnerabilities.
Use -show verbose for more details.
Use -show verbose for more details.
2 changes: 1 addition & 1 deletion internal/scan/testdata/platform-two-os-only.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ Your code is affected by 0 vulnerabilities.
This scan also found 1 vulnerability in packages you import and 0
vulnerabilities in modules you require, but your code doesn't appear to call
these vulnerabilities.
Use -show verbose for more details.
Use -show verbose for more details.
2 changes: 1 addition & 1 deletion internal/scan/testdata/source.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ Your code is affected by 1 vulnerability from the Go standard library.
This scan also found 0 vulnerabilities in packages you import and 1
vulnerability in modules you require, but your code doesn't appear to call these
vulnerabilities.
Use -show verbose for more details.
Use -show verbose for more details.
2 changes: 1 addition & 1 deletion internal/scan/testdata/source_traces.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ Your code is affected by 1 vulnerability from the Go standard library.
This scan also found 0 vulnerabilities in packages you import and 1
vulnerability in modules you require, but your code doesn't appear to call these
vulnerabilities.
Use -show verbose for more details.
Use -show verbose for more details.
1 change: 1 addition & 0 deletions internal/scan/text.go
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,7 @@ func (h *TextHandler) summary(c summaryCounters) {
case govulncheck.ScanLevelModule:
h.print("Use ", symbolMessage, ".")
}
h.print("\n")
}

func (h *TextHandler) style(style style, values ...any) {
Expand Down

0 comments on commit 3b6ac80

Please sign in to comment.